reactjs 无法读取未定义的属性(阅读“transformFile”)

l5tcr1uw  于 2023-03-01  发布在  React
关注(0)|答案(1)|浏览(415)

当我尝试存档iOS构建时,在过程结束时出现以下错误。
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:135:10) at stableHash (node_modules/metro-cache/src/stableHash.js:19:8) at Object.getCacheKey (/node_modules/metro-config/node_modules/metro-transform-worker/src/index.js:647:7) at getTransformCacheKey (node_modules/react-native/node_modules/metro/src/DeltaBundler/getTransformCacheKey.js:32:19) at new Transformer (node_modules/metro/src/DeltaBundler/Transformer.js:180:28) at node_modules/react-native/node_modules/metro/src/Bundler.js:58:29 at processTicksAndRejections (node:internal/process/task_queues:96:5) { 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'). TypeError: Cannot read properties of undefined (reading 'transformFile') at node_modules/react-native/node_modules/metro/src/Bundler.js:95:34 at Generator.next (<anonymous>) at asyncGeneratorStep (node_modules/react-native/node_modules/metro/src/Bundler.js:14:24) at _next (node_modules/react-native/node_modules/metro/src/Bundler.js:36:9) at processTicksAndRejections (node:internal/process/task_queues:96:5) info Run CLI with --verbose flag for more details.
尝试存档React原生iOS构建版本

hkmswyz6

hkmswyz61#

降级节点版本,这为我解决了问题。v16完成了这项工作。

相关问题