You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
I am still getting
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" ] }
The text was updated successfully, but these errors were encountered: