Skip to content
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 are not officially supported yet in 6.x pending a proposal update. #64

Closed
rjventrone opened this issue May 5, 2017 · 1 comment

Comments

@rjventrone
Copy link

I am still getting

Module build failed: SyntaxError: Decorators are not officially supported yet in 6.x pending a proposal update.
However, if you need to use them you can install the legacy decorators transform with:

npm install babel-plugin-transform-decorators-legacy --save-dev

and add the following line to your .babelrc file:

{
  "plugins": ["transform-decorators-legacy"]
}

even after npm install babel-plugin-transform-decorators-legacy --save-dev and updating .babelrc any thoughts?

{ "presets": ["react", "es2015", "stage-1"], "plugins": [ "transform-decorators-legacy", "transform-class-properties" ] }

@rjventrone
Copy link
Author

Forgot to add plugins to webppack.config works fine now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant