Wednesday, December 27, 2017

What to do in MobX when your at sign '@' is not define

For me this was a issue of not having babel setup properly.

Install with this:

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

And than add the plugin to my .babelrc file

{
 "presets": ["react-native"],
 "plugins": ["transform-decorators-legacy"]
}

No comments:

Post a Comment