反应原生帖子错误:无法找到模块'预包装'

时间:2016-10-23 14:46:39

标签: react-native

我想打包反应原生包

react-native bundle --entry-file index.ios.js --bundle-output ../NovaWed/NovaWed/Business/ReactNativeBundle/index.ios.jsbundle --platform ios --assets-dest ../NovaWed/NovaWed/Business/ReactNativeBundle --prepack true

但是终端帖子的错误是这样的:

  

错误:无法找到模块'预包装'       在Function.Module._resolveFilename(module.js:326:15)       在Function.Module._load(module.js:277:25)       在Module.require(module.js:354:17)       at require(internal / module.js:12:17)       在PrepackBundle.build(/Users/huangjunjie/Documents/Work/wed-iphone-nova/wed-react-native/node_modules/react-native/packager/react-packager/src/Bundler/PrepackBundle.js:65:19)       在Object.savePrepackBundle [as save](/Users/huangjunjie/Documents/Work/wed-iphone-nova/wed-react-native/node_modules/react-native/local-cli/bundle/output/prepack.js:23: 25)       在saveBundle(/Users/huangjunjie/Documents/Work/wed-iphone-nova/wed-react-native/node_modules/react-native/local-cli/bundle/buildBundle.js:19:12)       at /Users/huangjunjie/Documents/Work/wed-iphone-nova/wed-react-native/node_modules/react-native/local-cli/bundle/buildBundle.js:72:16       在tryCallOne(/Users/huangjunjie/Documents/Work/wed-iphone-nova/wed-react-native/node_modules/promise/lib/core.js:37:12)       at /Users/huangjunjie/Documents/Work/wed-iphone-nova/wed-react-native/node_modules/promise/lib/core.js:123:15

我不知道哪里出错了?谁能告诉我为什么?

1 个答案:

答案 0 :(得分:0)

尝试删除末尾的--prepack true标记,以启用实验性预包装预处理器。