我如何找到哪个包裹在错误地拉起通天塔?

时间:2019-02-20 23:11:19

标签: javascript react-native npm babel expo

我正在尝试构建我的React-Native项目,可以通过npm start进行启动,但是当我尝试在手机上加载该项目时,我在控制台中收到以下错误消息:

C:\code\famtastic\appfr\node_modules\expo\AppEntry.js: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel. (While processing preset: "C:\\code\\famtastic\\appfr\\node_modules\\babel-preset-expo\\index.js")

在我的package.json中,我的依赖项反映了@ babel / core位于7.0.0-beta.49。我也可以在7.0.0处安装该软件包,但是无论它在什么位置,我仍然会在构建完成之前被退回。我注意到在我的package-lock.json中,将bable-core(我不知道不同的语法是否有所不同,但是我尝试将其交换为@ babel / core并在运行npm install时还原) 6.26.3可能是问题出处。我试过强迫它使用7.0.0,但无济于事。任何帮助或指示将不胜感激。

0 个答案:

没有答案