SHA-1 for file (......./pollyfills-require.js) is not computed
See original GitHub issueDescription:
I’m trying to bundle index.android.bundle for getting the famous RN error:
Unable to load script from assets ‘index.android.bundle’
I followed all the guides that were shown into the official documentation of RN.
React Native version:
I’m using the latest version of react-native
. Specifically, I installed all the packages and tools yesterday.
Steps To Reproduce
1.Generate a new react-native Project using react-native-cli
2.Remove react-native-cli and install @react-native-community/cli (old cli knows how to create new projects, new CLI does not)
3.Go to the project directory, and run:
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
4.Wait couple of seconds
Expected Results
1 .index.android.bunlde
should finish bundling
2. After hitting react-native run-android
, the project should start and display in the android emulator that is active.
Snack, code example, screenshot, or link to a repository:
Any project. I tested on a fresh new project from react-native-cli.
You can find the full error attached here.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
Please post the full envinfo dump in your issue. We discourage using “latest version” and would rather prefer bug reports contain be specific about the version that is being used.
@Usamaliaquat123 Yes, but when using only react-native-cli, was not able to create and run a project, a lot of suggestions were pointing to the @react-native-community/cli and with that in place the creation of the project was successful.
I think that the instructions are a little bit weird, for example the SDK version suggested in the official documentation is 9.0 and not the latest one 10.0. I think that a lot of developers are having issues just running their react-native projects, with more than 100K+ views on react-native errors.