Decorators are not officially supported yet in 6.x pending a proposal update.
rjventrone opened this issue · comments
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" ] }
Forgot to add plugins to webppack.config works fine now