请问下这个错误怎么解决



  • pushy bundle --platform android

    Bundling with React Native version: 0.46.4
    Invariant Violation: Can't find "rn-cli.config.js" file in any parent folder of "D:\App"
    at invariant (D:\App\node_modules\fbjs\lib\invariant.js:44:15)
    at Object.findWithPathCustom (D:/App/node_modules/react-native/local-cli/util/Config.js:188:5)
    at Object.findCustom (D:/App/node_modules/react-native/local-cli/util/Config.js:179:19)
    at Object.find (D:/App/node_modules/react-native/local-cli/util/Config.js:170:19)
    at Object.<anonymous> (D:\App\node_modules\react-native-update\local-cli\lib\bundle.js:451:34)
    at Generator.next (<anonymous>)
    at step (D:\App\node_modules\react-native-update\local-cli\lib\bundle.js:310:191)
    at D:\App\node_modules\react-native-update\local-cli\lib\bundle.js:310:361
    at <anonymous>



  • 遇到相同的问题了
    请问有解决的方案没?
    rn-cli.config.js文件实际是存在的,不过好像是在 node_modules/metro-bundler/src目录下...



  • @wangpengzong 解决了吗?同求答案



  • 缺少文件rn-cli.config.js"



  • @DevilSoulcz 解决了吗?同求答案


  • administrators

    已在5.0.0版本中修复


登录后回复