我的项目没有错误。但是构建无法成功加载。请参见下图,以获取有关错误的更多详细信息。我正在使用以下命令运行构建react-native项目,但npm无法创建构建。
yarn start
这是错误消息-
bundling failed: Error: ENOENT: no such file or directory, open 'C:\Users\SAPTAM~1\AppData\Local\Temp\metro-cache\67\5806873866f895b1ae688cb65717586cbadbac9dc2e44a5924e666bfc31f288e2cb03a'
at Object.fs.openSync (fs.js:559:3)
at Object.fs.writeFileSync (fs.js:1289:33)
at FileStore.set (E:\Work\ReactNative\AsesomeProject3\node_modules\metro-cache\src\stores\FileStore.js:55:10)
at Cache.set (E:\Work\ReactNative\AsesomeProject3\node_modules\metro-cache\src\Cache.js:124:31)
at E:\Work\ReactNative\AsesomeProject3\node_modules\metro\src\DeltaBundler\Transformer.js:223:13
at Generator.next (<anonymous>)
at asyncGeneratorStep (E:\Work\ReactNative\AsesomeProject3\node_modules\metro\src\DeltaBundler\Transformer.js:46:24)
at _next (E:\Work\ReactNative\AsesomeProject3\node_modules\metro\src\DeltaBundler\Transformer.js:66:9)
at process._tickCallback (internal/process/next_tick.js:68:7)