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.

ReferenceError: SHA-1 for file [(...).png] is not computed

See original GitHub issue
[0] sha1 3aabc4bf20662c004fea1fc5fada45d88cb21c74 file [...]/src/parallaximage/ParallaxImage.js
[0] sha1 48bd39bdb03d630a2cb85c12c736d2fb74392609 file [...]/src/utils/animations.js
[0] sha1 1e735cdb78d49457628797acfbfcfdc958c9e0e9 file [...]/node_modules/react-native-svg/index.js
[0] sha1 null file [...]/assets/bitcoin-large.png
[0] sha1 null file [...]/assets/campaign-lime.png
[0] sha1 null file [...]/assets/campaign-orange.png
[0] sha1 null file [...]/assets/campaign-pink.png
[0] sha1 null file [...]/assets/campaign-cyan.png

output for: console.log('sha1', sha1, 'file', filename) at /node_modules/metro/src/node-haste/DependencyGraph.js:257

There is no sha1 generated for png and jpg files after react native upgrade, not sure how to fix that

rn-cli-config.js

// const path = require('path')
// const cwd = path.resolve(__dirname)

module.exports = {
  // transformer: {
  //   babelTransformerPath: path.resolve(__dirname, './config/transformers.js'),
  // },
  resolver: {
    sourceExts: ['jsx', 'js'],
    assetExts: ['png', 'jpg']
  },
  // projectRoot: cwd
}

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:14

github_iconTop GitHub Comments

6reactions
Rendfoldcommented, Apr 30, 2020

What I did notice is that it happens if imported images are outside of your project and that is logical, that was my mistake. I am using lerna and it happened a lot of times. Maybe it is your issue as well?

5reactions
Rendfoldcommented, Aug 15, 2019

Actually, same happens on react native 0.60.4, without this command. Any suggestions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native Bundle Error error SHA-1 for file is not computed
To solve my issue I have run command with --force option. npm install -i -g --force react-native-cli. This issue was raise due to...
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 >
Referenceerror: Sha-1 For File Is Not Computed - ADocLib
There is no sha1 generated for png and jpg files after react native upgrade not sure how to fix that I am using...
Read more >
ReferenceError: SHA-1 for file is not computed-React Native
Coding example for the question How to remove error: bundling failed: ReferenceError: SHA-1 for file is not computed-React Native.
Read more >
Calculate a SHA-1 hash - Hash generator
Generate a SHA-1 hash from your sensitive data like passwords with this free online SHA-1 hash generator. Optionally create a SHA-1 checksum of...
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