ReactVision / starter-kit

React Native project setup with Viro šŸš€
MIT License
141 stars 94 forks source link

error on start running #60

Closed ebagsrl closed 8 months ago

ebagsrl commented 1 year ago

Hello, after following all the steps and launching the command npx react-native run-android I get the following error. How do I solve? Thank you

Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:133:10) at stableHash (D:\REACT NATIVE\starter-kit\node_modules\metro-cache\src\stableHash.js:19:8) at Object.getCacheKey (D:\REACT NATIVE\starter-kit\node_modules\metro-transform-worker\src\index.js:593:7) at getTransformCacheKey (D:\REACT NATIVE\starter-kit\node_modules\metro\src\DeltaBundler\getTransformCacheKey.js:24:19) at new Transformer (D:\REACT NATIVE\starter-kit\node_modules\metro\src\DeltaBundler\Transformer.js:48:9) at D:\REACT NATIVE\starter-kit\node_modules\metro\src\Bundler.js:22:29 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }

nikitalokhmachev-ai commented 1 year ago

Same issue here. Were you able to solve it?

sascha-trarbach commented 1 year ago

I was able to get it running on Windows through the following steps:

Hope this helps someone.

perpetuallight commented 1 year ago

That error looks like it is coming from the Metro Bundler. I would look there. Could be the same race condition that I found here. I noticed that it will fail intermittently too. I think that this is correct behavior though. I added a return to the then clause. But I suspect that assigning the full chain to the variable would have a similar effect. Also, you could try using node 12 if you are not already. Source

jeetsoni commented 11 months ago

I was able to get it running on Windows through the following steps:

Hope this helps someone.

This works for me THANKS

psankhe28 commented 10 months ago

image I am getting this error. Can anyone help with it?

robertjcolley commented 8 months ago

I was able to get it running on Windows through the following steps:

Hope this helps someone.

Thank you for the detailed response! Greatly appreciated šŸ„³