Metro Bundler准备就绪. 加载依赖图,完成. error: bundling failed: Error: invalid value for dynamic deps behavior: null at getDynamicDepsBehavior (C:\Projects\react-native\test\node_modules\metro\src\JSTransformer\worker\index.js:18
加载依赖图,完成.
error: bundling failed: Error: invalid value for dynamic deps
behavior:null
at getDynamicDepsBehavior (C:\Projects\react-native\test\node_modules\metro\src\JSTransformer\worker\index.js:185:13) at postTransform (C:\Projects\react-native\test\node_modules\metro\src\JSTransformer\worker\index.js:131:26) at Object.transformCode [as transform] (C:\Projects\react-native\test\node_modules\metro\src\JSTransformer\worker\index.js:251:17) at execMethod (C:\Projects\react-native\test\node_modules\jest-worker\build\child.js:92:29) at process.on (C:\Projects\react-native\test\node_modules\jest-worker\build\child.js:42:7) at process.emit (events.js:160:13) at emit (internal/child_process.js:790:12)
BUNDLE [android,dev] ./ index.js░░░░░░░░░░░░░░░░0.0%(0/1),失败.
听起来像地铁的坏版本发布: https://github.com/facebook/metro/issues/126尝试了全新安装,现在一切正常.只需运行“npm install metro”来更新hotfixed版本(0.24.6)也应该可以解决问题.