Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHA-1 for file (......./pollyfills-require.js) is not computed #27903

Closed
diamantisufi opened this issue Jan 30, 2020 · 6 comments
Closed

SHA-1 for file (......./pollyfills-require.js) is not computed #27903

diamantisufi opened this issue Jan 30, 2020 · 6 comments
Labels
Needs: Author Feedback Resolution: Locked This issue was locked by the bot.

Comments

@diamantisufi
Copy link

diamantisufi commented Jan 30, 2020

error

Description:

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.

@diamantisufi diamantisufi changed the title SHA-1 for file (......./empty-require.js) is not computed SHA-1 for file (......./pollyfills-require.js) is not computed Jan 30, 2020
@Usamaliaquat123
Copy link

@diamantisufi great... . react-native-cli its global convenience package, which is a proxy to @react-native-community/cli ,just a global installation helper. Actually this a part of
Lean Core inintiative there's an ongoing effort to remove this module so we can use just react-native as the only package necessary to install and run React Native commands

@diamantisufi
Copy link
Author

@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.

@hramos hramos added Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. Needs: Author Feedback and removed Needs: Triage 🔍 labels Jan 31, 2020
@hramos
Copy link
Contributor

hramos commented Jan 31, 2020

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.

@react-native-bot react-native-bot removed the Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. label Jan 31, 2020
@no-response
Copy link

no-response bot commented Mar 4, 2020

It's been three weeks since we asked for additional information from the author of this issue. As it happens, we don't have enough information to take action. We are going to close this issue, but please do not hesitate to open a new issue if you are still encountering this problem.

@no-response no-response bot closed this as completed Mar 4, 2020
@Liqiankun
Copy link

npx react-native start

@ecemac
Copy link

ecemac commented Jan 22, 2021

I've been dealing with this issue for a long time now. I'm still looking for a permanent solution, but if you need it to work run npx react-native start and open the app from your emulator manually. In my case, I get this error with react-native run-android but it does build the app, just doesn't start it. You will need to repeat these steps if you want a new build though.

@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Author Feedback Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants