-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decorators (legacy) enforce decorators after export #8598
Comments
Hey @jsg2021! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Do you have a stack trace or anything? As far as I'm aware, |
Oh... the error is not from babel cli, its from eslint, & babel-eslint@9.0.0 :/ |
Ah, yeah
in your ESLint config should resolve it for you. |
awesome... i was off creating a repro... thanks! |
heads up to anyone copy pasting this.... @loganfsmyth typed 'decotators' (not |
I uppdated his comment |
The babel 6 legacy decorators transform allowed decorators on either side of the export... after upgrading to babel 7 using the new decorators transform with
legacy: true
, code that used decorators before the export are failing with:The text was updated successfully, but these errors were encountered: