未处理的JS异常:需要未知模块“12”

时间:2017-11-03 21:24:35

标签: react-native

问题出现在react-native init tech_stack1react-native run-iso命令和最后一次Xcode更新(9.1)之后不久。

它与“No bundle URL present”交替显示。

这是我的package.json

"name": "tech_stack1",
"version": "0.0.1",
"private": true,
"scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
},
"dependencies": {
    "react": "16.0.0",
    "react-native": "0.50.0"
},
"devDependencies": {
    "babel-jest": "21.2.0",
    "babel-preset-react-native": "4.0.0",
    "jest": "21.2.1",
    "react-test-renderer": "16.0.0"
},
"jest": {
    "preset": "react-native"
}

1 个答案:

答案 0 :(得分:0)

在对@latest版本的react-native,redux和react-redux进行一些升级之后,我还能够通过在新的终端窗口中执行react-native start命令来摆脱这个错误(去除没有捆绑网址。)