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
"Unexpected token" build error with legacy / stage 1 decorators (no @e-d/babel-transforms
)
#48
Comments
This is caused by babel/babel#9852. You can either:
|
@e-d/babel-transforms
)
@buschtoens thanks for the update 😄 Will wait for babel/babel#9912 to be merged. Using the assignment syntax in the meantime. |
I just merged #54 and released it as |
@buschtoens looks like the latest Babel release (7 days ago) is v7.5.5, which presumably includes babel/babel#9912 (merged 24 days ago). Does that mean this patch work-around is no longer needed in order to use the "fancy generator method syntax" and the note can be removed/examples updated? FWIW, looks like ember-cli v3.11 still only requires ^7.4.3, while current HEAD requires ^7.5.5, which I think means this can be relied on once 3.12(-beta?) ships? |
@gabrielgrant Yes. The fix was already released in Also, the version of If you are using yarn, you can force an upgrade of this |
Code snippet in question:
Error on build:
Dependencies include:
And not using
@ember-decorators/babel-transforms
The text was updated successfully, but these errors were encountered: