-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
au generate component <name> returns SyntaxError #954
Comments
can you create a file named {
"plugins": [
"transform-decorators-legacy"
]
} and make sure that your package.json contains |
Thanks for responding @zewa666 . There already is a .babelrc. It looks like this
This is the one I found in package.json. |
so adding |
All au commands do not use local babelrc file, it uses internal babel config to just run task files. This has to be fixed in cli code. I am not sure why the au generate command needs to validate the If we need that check, and don’t want to change babelrc:false, then need to add Line 207 in ac889c0
|
No, unfortunately this did not help.
I tried to add ['@babel/plugin-proposal-decorators', { legacy: true }] to .babelrc and run |
As I said, it does NOT use local babelrc. Changing your local babelrc would not help. This has to be fixed in cli code base, not your app code. |
Ah! Sorry. My bad. Thanks anyways. 👍 |
If nobody picked this up, I will fix it after my vacation (about 2 more weeks). Sorry for the inconvenience. |
I am experiencing the same issue. |
yea same here. what parts do we need to update when its fixed |
It will be fixed in a new version of cli. All you need will be update package.json and reinstall packages. |
I'm submitting a bug report
1.0.0-beta.3
Please tell us about your environment:
Operating System:
OSX 10.14
Node Version:
v10.12.0
6.4.1
Browser:
all
Language:
all
Loader/bundler:
Webpack
Current behavior:
When I run
au generate component info-box
this error is returnedApp now breaks as in error shown above
The text was updated successfully, but these errors were encountered: