我开始了一个新的react-native项目,并从我的以前的项目中复制了.babelrc文件。我安装了必要的插件,但是遇到了错误:
我检查了路径中的node_modules,并看到插件是使用安装的。 我的eslint插件也出现了类似的错误。 我在项目设置中是否少了什么,导致babel和eslint看不到node_modules?
这可能是由于安装了react-native-code-push引起的吗? 我认为在安装codepush时会发生一些错误,其中duplicated the react pod in the pod install,所以我将其从podfile中删除了。即使我在react js文件中没有实现code push,它是否仍在尝试使用缓存的code-push js?
Unknown plugin transform-decorators-legacy specified in .babelrc, attempted to resolve relative to "/mypath/project"
我检查了路径中的node_modules,并看到插件是使用安装的。 我的eslint插件也出现了类似的错误。 我在项目设置中是否少了什么,导致babel和eslint看不到node_modules?
这可能是由于安装了react-native-code-push引起的吗? 我认为在安装codepush时会发生一些错误,其中duplicated the react pod in the pod install,所以我将其从podfile中删除了。即使我在react js文件中没有实现code push,它是否仍在尝试使用缓存的code-push js?