Unable to load script from assets index.android.bundle on windows

后端 未结 30 4367
鱼传尺愫
鱼传尺愫 2020-11-22 06:33

I\'m trying to run my first React Native project for first time on my device (Android 4.2.2).

And I get:

unable to load script from assets in

30条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 07:12

    I think you don't have yarn installed try installing it with chocolatey or something. It should be installed before creating your project (react-native init command).

    No need of creating assets directory.

    Reply if it doesn't work.

    Edit: In the recent version of react-native they have fixed it. If you want complete freedom from this just uninstall node (For complete uninstallation Completely remove node refer this link) and reinstall node, react-native-cli then create your new project.

提交回复
热议问题