GSYGithubAPP icon indicating copy to clipboard operation
GSYGithubAPP copied to clipboard

can not found main.jsbundle

Open LittleXu opened this issue 3 years ago • 6 comments

如图所示 image

LittleXu avatar Apr 21 '21 03:04 LittleXu

react-native run-ios 不是会调用 node_module 么?

CarGuo avatar Apr 21 '21 03:04 CarGuo

我没有使用npm install 命令 这个命令报一堆错 直接使用了yarn

直接 react-native run-ios 报错 缺少main.jsbundle 我采用下边方法 将生成的main.jsbundle 放到项目中后 curl http://localhost:8081/index.bundle -o main.jsbundle

又这样了 image

LittleXu avatar Apr 21 '21 03:04 LittleXu

配置了readme 的 ignoreConfig.js 了吗?

CarGuo avatar Apr 21 '21 05:04 CarGuo

配置了 image

LittleXu avatar Apr 21 '21 05:04 LittleXu

那就很奇怪了··我这边用 yarn 也是正常

CarGuo avatar Apr 21 '21 06:04 CarGuo

我这边唯一能想到的就是 node 版本不对,现在用的是 v10.13.0

CarGuo avatar Apr 23 '21 07:04 CarGuo