惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
A
About on SuperTechFans
Y
Y Combinator Blog
D
DataBreaches.Net
I
InfoQ
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
G
Google Developers Blog
博客园_首页
博客园 - 司徒正美
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
博客园 - 叶小钗
Engineering at Meta
Engineering at Meta
Apple Machine Learning Research
Apple Machine Learning Research
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 【当耐特】
D
Docker
量子位

博客园 - zhengyan_web

rn 适配 鸿蒙 极光推送集成记录 xcode 打包 报错 main.jsbundle does not exist. react-native-background-job 加载依赖报错处理 解决gradle与gradle plugin匹配关系以及gradle下载缓慢的问题 ‌华为手机记录密码后页面显示的用户名可以通过修改设置来隐藏 极狐gitlab 搭建 mac 电脑查看已安装的谷歌插件 xcode 15打包报错 网络代理 mac jdk切换 js编码、解码方法(escape,encodeURI,encodeURIComponent区别及用法) grep命令 苹果审核Guideline 2.3.1 - Performance XCode报错Thread 1: EXC_BAD_ACCESS (code=2, address=0x....) mac m1 运行老项目 docker 安装homebrew报错error: Not a valid ref: refs/remotes/origin/master 的解决方法 React Native 新版 pod install 依赖时报错
rn node 版本问题
zhengyan_web · 2024-08-28 · via 博客园 - zhengyan_web

报错信息:Command PhaseScriptExecution failed with a nonzero exit code

Failed to construct transformer:  Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at stableHash (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro-cache/src/stableHash.js:19:8)
    at Object.getCacheKey (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro-transform-worker/src/index.js:593:7)
    at getTransformCacheKey (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/getTransformCacheKey.js:24:19)
    at new Transformer (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/Transformer.js:48:9)
    at /Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/Bundler.js:22:29
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  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 Bundler.transformFile (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/Bundler.js:48:30)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.transform (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/lib/transformHelpers.js:101:12)
    at async processModule (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:137:18)
    at async traverseDependenciesForSingleFile (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:131:3)
    at async Promise.all (index 0)
    at async initialTraverseDependencies (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:114:3)
    at async DeltaCalculator._getChangedDependencies (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:164:25)
    at async DeltaCalculator.getDelta (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:94:16)
    at async DeltaBundler.buildGraph (/Users/zhengyan/works/app/sinochem-ubmp-app/node_modules/metro/src/DeltaBundler.js:50:5)
info Run CLI with --verbose flag for more details.

解决办法:

  打开xcode   找到  Build Phases =>  Bundle react native code and images  添加   export NODE_OPTIONS=--openssl-legacy-provider