Unknown plugin specified in .babelrc tried to resolve relative to path

So, I started a new project with a reaction and copied the .babelrc file from my previous project. I installed the necessary plugins, but I get an error

Unknown plugin transform-decorators-legacy specified in .babelrc, attempted to resolve relative to "/mypath/project"

I checked the node_modules in the path and see that the plugin was installed using yarn add. I also get similar errors with my eslint plugins. Am I missing something in my project setup so babel and eslint see node_modules?

Perhaps this is due to the installation react-native-code-push? I think I had some errors when I installed codepush, where it duplicated the react block in the pod installation - and therefore I removed it from the podfile. Is this an attempt to use cached push-code js even if I don't have the code implemented in my reactive js files?

+4
source share
3 answers

tra zp form-decorators-heritage

You have a typo.

0
source

try the following:

yarn add babel-plugin-transform-decorators-legacy -g
0
source

NPM:

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

0
source

Source: https://habr.com/ru/post/1673449/


All Articles