react-native: main.jsbundle does not exist. This must be a bug with

Description

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 (/Users/codelantic/Desktop/CL/spotonpay_mobile/node_modules/metro-cache/src/stableHash.js:19:8) at JsTransformer.getCacheKey (/Users/codelantic/Desktop/CL/spotonpay_mobile/node_modules/metro/src/JSTransformer/worker.js:478:7) at getTransformCacheKey (/Users/codelantic/Desktop/CL/spotonpay_mobile/node_modules/metro/src/DeltaBundler/Transformer/getTransformCacheKey.js:39:29) at new Transformer (/Users/codelantic/Desktop/CL/spotonpay_mobile/node_modules/metro/src/DeltaBundler/Transformer.js:147:28) at /Users/codelantic/Desktop/CL/spotonpay_mobile/node_modules/metro/src/Bundler.js:54:29 { opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ], library: ‘digital envelope routines’, reason: ‘unsupported’, code: ‘ERR_OSSL_EVP_UNSUPPORTED’ } error Cannot read properties of undefined (reading ‘transformFile’). Run CLI with --verbose flag for more details. TypeError: Cannot read properties of undefined (reading ‘transformFile’) at /Users/codelantic/Desktop/CL/spotonpay_mobile/node_modules/metro/src/Bundler.js:91:34 at Generator.next (<anonymous>) at asyncGeneratorStep (/Users/codelantic/Desktop/CL/spotonpay_mobile/node_modules/metro/src/Bundler.js:14:24) at _next (/Users/codelantic/Desktop/CL/spotonpay_mobile/node_modules/metro/src/Bundler.js:34:9)

  • [[ false != true ]]
  • [[ ! -f /Users/codelantic/Library/Developer/Xcode/DerivedData/SpotonPay-ayrwuibscfwqvvfpjawgxchgstzr/Build/Intermediates.noindex/ArchiveIntermediates/SpotonPay/BuildProductsPath/Release-iphoneos/SpotonPay.app/main.jsbundle ]]
  • echo ‘error: File /Users/codelantic/Library/Developer/Xcode/DerivedData/SpotonPay-ayrwuibscfwqvvfpjawgxchgstzr/Build/Intermediates.noindex/ArchiveIntermediates/SpotonPay/BuildProductsPath/Release-iphoneos/SpotonPay.app/main.jsbundle does not exist. This must be a bug with’ error: File /Users/codelantic/Library/Developer/Xcode/DerivedData/SpotonPay-ayrwuibscfwqvvfpjawgxchgstzr/Build/Intermediates.noindex/ArchiveIntermediates/SpotonPay/BuildProductsPath/Release-iphoneos/SpotonPay.app/main.jsbundle does not exist. This must be a bug with
  • echo ‘React Native, please report it here: https://github.com/facebook/react-native/issues’ React Native, please report it here: https://github.com/facebook/react-native/issues
  • exit 2

! Need Help

Version

0.63.4

Output of npx react-native info

System: OS: macOS 12.5.1 CPU: (8) arm64 Apple M1 Memory: 99.97 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.7.0 - ~/.nvm/versions/node/v18.7.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v18.7.0/bin/yarn npm: 8.18.0 - ~/.nvm/versions/node/v18.7.0/bin/npm Watchman: 2022.07.04.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9014738 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: 11.0.16 - /usr/bin/javac Python: Not Found npmPackages: @react-native-community/cli: ^4.14.0 => 4.14.0 react: 16.13.1 => 16.13.1 react-native: 0.63.4 => 0.63.4 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Hello,

i get this issue when i try to archive my project for testFlight furthermore i have this issues “Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported”…

this is common in android and ios

Snack, code example, screenshot, or link to a repository

Screenshot 2022-11-08 at 11 23 28

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 13
  • Comments: 20

Most upvoted comments

downgrading to node 16.0 cleared the failed to construct transformer problem.

This issue was closed because it has been stalled for 7 days with no activity.

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.