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

推荐订阅源

WordPress大学
WordPress大学
博客园 - 司徒正美
Last Week in AI
Last Week in AI
博客园 - 聂微东
Jina AI
Jina AI
月光博客
月光博客
爱范儿
爱范儿
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
T
Tailwind CSS Blog
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
罗磊的独立博客
小众软件
小众软件
雷峰网
雷峰网
IT之家
IT之家
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio Blog

博客园 - 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