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.

Cannot read properties of undefined 'transformFile'

See original GitHub issue

Virtual Device: Name: Pixel_2_API_29 CPU/ABI: Google Play Intel Atom (x86) API level 29

i downloaded the latest source but after syncing grandle and running npx react-native run-android i get this error:

Failed to construct transformer:  Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at stableHash (C:\Users\Cyclone\Downloads\BlueWallet-master\node_modules\metro-cache\src\stableHash.js:19:8)
    at Object.getCacheKey (C:\Users\Cyclone\Downloads\BlueWallet-master\node_modules\metro-transform-worker\src\index.js:647:7)
    at getTransformCacheKey (C:\Users\Cyclone\Downloads\BlueWallet-master\node_modules\metro\src\DeltaBundler\getTransformCacheKey.js:32:19)
    at new Transformer (C:\Users\Cyclone\Downloads\BlueWallet-master\node_modules\metro\src\DeltaBundler\Transformer.js:180:28)
    at C:\Users\Cyclone\Downloads\BlueWallet-master\node_modules\metro\src\Bundler.js:58:29 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
 BUNDLE  ./index.js

error: TypeError: Cannot read properties of undefined (reading 'transformFile')
    at C:\Users\Cyclone\Downloads\BlueWallet-master\node_modules\metro\src\Bundler.js:95:34
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (C:\Users\Cyclone\Downloads\BlueWallet-master\node_modules\metro\src\Bundler.js:14:24)
    at _next (C:\Users\Cyclone\Downloads\BlueWallet-master\node_modules\metro\src\Bundler.js:36:9)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
Overtormentcommented, Feb 19, 2022

i sense the problem is in windows. delete it and install linux

3reactions
marcosrdzcommented, Dec 2, 2021

Run: npm start – --reset-cache at the root folder of the project, and then run the app

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read properties of undefined (reading 'transformFile ...
Ran into the same issue with Node.js 17.0.0. To solve it, I downgraded to version 14.18.1, deleted node_modules and reinstalled.
Read more >
Cannot read properties of undefined (reading 'transformFile')
To solve the TypeError: Cannot read properties of undefined (reading 'transformFile'): Update your react-native version to the latest. Set the NODE_OPTIONS ...
Read more >
Metro has encountered an error: cannot read property of ...
I got error : Metro has encountered an error: cannot read property of undefined (reading 'transformfile') at bundler.transformfile... and then I ...
Read more >
Error referencing code I can't find? Bundler.js - Reddit
Metro has encountered an error: Cannot read properties of undefined (reading 'transformFile'): /Users/[my name]/Desktop/[project ...
Read more >
[Solved]-React native: error: TypeError - appsloveworld
Coding example for the question React native: error: TypeError: Cannot read properties of undefined (reading 'transformFile')
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