Mo *_*lgh 6 node.js npm react-native yarnpkg expo
我正在尝试运行现有的世博会项目。我已经克隆了它并运行了纱线,然后博览会开始了。并收到此错误:
无法scheduler
从/path-to-project/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-prod.js
以下位置解析模块:scheduler
Haste 模块映射中不存在模块
这可能与https://github.com/facebook/react-native/issues/4968有关
尝试通过以下方式解决:
watchman watch-del-all
.node_modules
文件夹:rm -rf node_modules && npm install
。rm -rf /tmp/metro-bundler-cache-*
或npm start -- --reset-cache
。rm -rf /tmp/haste-map-react-native-packager-*
。线索:尝试运行iOS模拟器时,budling卡在%99
Building JavaScript bundle [================================= ] 99%
Run Code Online (Sandbox Code Playgroud)
在那之后:
Failed building JavaScript bundle.
Run Code Online (Sandbox Code Playgroud)
通过将这些版本添加到我的项目中来解决。
"expo": "^35.0.0",
"react": "16.8.3",
"react-dom": "16.8.3",
"react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
"react-native-web": "^0.11.7"
Run Code Online (Sandbox Code Playgroud)
但是,我通过更新 expo 版本遇到了其他问题。
归档时间: |
|
查看次数: |
1526 次 |
最近记录: |