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:
- Created 4 years ago
- Comments:14
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
Actually, same happens on react native 0.60.4, without this command. Any suggestions?