找不到模块' core-js / fn / array / values'反应原生

时间:2016-10-17 06:54:11

标签: javascript android react-native react-native-android

您好我刚开始在react-native平台上工作,按照本教程https://facebook.github.io/react-native/docs/getting-started.html我收到此错误。

E:\React Programming\AwesomeProject>react-native run-android
module.js:327
    throw err;
    ^

Error: Cannot find module 'core-js/fn/array/values'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (E:\React Programming\AwesomeProject\node_modules\reac
t-native\packager\babelRegisterOnly.js:11:27)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)

E:\React Programming\AwesomeProject>

1 个答案:

答案 0 :(得分:0)

删除对core-js/fn/array/values的引用,可能您有一个

require('core-js/fn/array/values') 

代码中的某个地方。

删除该行。