undefined无法从@react-navigation/native
解析模块App.js
:在项目内找不到@ react-navigation / native。
如果您确定模块存在,请尝试以下步骤:1.清除守望者手表:守望者手表全部2.删除node_modules:rm -rf node_modules并运行yarn install3.重置Metro的缓存:yarn start --reset-cache4.删除缓存:rm -rf / tmp / metro- *-showCompileError中的node_modules \ react-native \ Libraries \ Utilities \ HMRClient.js:307:41-client.on $ argument_1中的node_modules \ react-native \ Libraries \ Utilities \ HMRClient.js:228:26-发射中的node_modules \ eventemitter3 \ index.js:181:39-_ws.onmessage中的node_modules \ metro \ src \ lib \ bundle-modules \ WebSocketHMRClient.js:80:20-EventTarget.prototype.dispatchEvent中的node_modules \ event-target-shim \ dist \ event-target-shim.js:818:39-_eventEmitter.addListener $ argument_1中的node_modules \ react-native \ Libraries \ WebSocket \ WebSocket.js:232:27-发出时的node_modules \ react-native \ Libraries \ vendor \ emitter \ EventEmitter.js:190:12-__callFunction中的node_modules \ react-native \ Libraries \ BatchedBridge \ MessageQueue.js:436:47-__guard $ argument_0中的node_modules \ react-native \ Libraries \ BatchedBridge \ MessageQueue.js:111:26-__guard中的node_modules \ react-native \ Libraries \ BatchedBridge \ MessageQueue.js:384:10-__guard $ argument_0中的node_modules \ react-native \ Libraries \ BatchedBridge \ MessageQueue.js:110:17* [本机代码]:callFunctionReturnFlushedQueue中为空
无法从“ App.js”解析“ @ react-navigation / native”无法建立JavaScript套件。无法解析“ App.js”中的“ @ react-navigation / native”无法建立JavaScript套件。无法解析“ App.js”中的“ @ react-navigation / native”无法构建JavaScript包。
无法从“ App.js”解析“ @ react-navigation / native”无法解析“ App.js”中的“ @ react-navigation / native”无法建立JavaScript套件。错误:在package.json依赖项中找不到react-native错误:在package.json依赖项中找不到react-native
请帮助我。电子邮件ID:[email protected]
发生此错误是因为您尚未安装react-navigation。
运行:
npm install react-navigation
npm start -- --reset-cache