question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hramoscommented, 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.

1reaction
diamantisuficommented, Jan 31, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

SHA-1 for file ... is not computed when using resolver ... - GitHub
I have been adding dependencies in project using Yarn add {dependencyName} and starting project via npm. which created error of SHA-1.
Read more >
React-Native Bundle Error error SHA-1 for file is not computed
I am facing this error while creating bundle of react-native app. I am executing command react-native bundle --dev false --entry-file index.js ...
Read more >
React-Native Bundle Error error SHA-1 for file is not computed
iOS : React-Native Bundle Error error SHA-1 for file is not computed [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
Read more >
React-Native Bundle Error error SHA-1 for file is not computed
I am facing this error while creating bundle of react-native app. I am executing command react-native bundle –dev false –entry-file index.js –bundle-output ...
Read more >
Metro bundler has encountered an error SHA-1 | by Jeaf Gilbert
Open: YourProjectFolder/android/gradle/wrapper/gradle-wrapper. properties. Update distributionUrl to: https\://services.gradle.org/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found