Open smoothdvd opened 11 months ago
在 ubuntu 20.04 进行H5构建、taro init 会报
Error: /usr/local/share/.config/yarn/global/node_modules/@tarojs/binding-linux-x64-gnu/taro.linux-x64-gnu.node: undefined symbol: __libc_single_threaded
在 ubuntu 20.04 进行H5构建、taro init 会报
Error: /usr/local/share/.config/yarn/global/node_modules/@tarojs/binding-linux-x64-gnu/taro.linux-x64-gnu.node: undefined symbol: __libc_single_threaded
目前 taro 的 Rust binding 是在 ubuntu-22.04 上编译的,在 ubuntu 20.04 上可能会有问题
在 ubuntu 20.04 进行H5构建、taro init 会报 Error: /usr/local/share/.config/yarn/global/node_modules/@tarojs/binding-linux-x64-gnu/taro.linux-x64-gnu.node: undefined symbol: __libc_single_threaded
目前 taro 的 Rust binding 是在 ubuntu-22.04 上编译的,在 ubuntu 20.04 上可能会有问题
你好,我们发布时是走的ZADIG自动化构建,运行在k8s,构建时也会出现这个问题,请问下这种有没有办法处理呢?或者提供配置可以指定不走 rust 桥接是否可行呢?
在 ubuntu 20.04 进行H5构建、taro init 会报 Error: /usr/local/share/.config/yarn/global/node_modules/@tarojs/binding-linux-x64-gnu/taro.linux-x64-gnu.node: undefined symbol: __libc_single_threaded
目前 taro 的 Rust binding 是在 ubuntu-22.04 上编译的,在 ubuntu 20.04 上可能会有问题
你好,我们发布时是走的ZADIG自动化构建,运行在k8s,构建时也会出现这个问题,请问下这种有没有办法处理呢?或者提供配置可以指定不走 rust 桥接是否可行呢?
我修改下 CI 配置,在 ubuntu 20.04 上进行编译吧
我在ci构建时遇到了类似的问题
环境 Taro版本:3.6.22 docker镜像:node:16.20.2
错误信息:
Error: /builds/shifu_admin/shangxue_user/node_modules/.pnpm/@tarojs+binding-linux-x64-gnu@3.6.22/node_modules/@tarojs/binding-linux-x64-gnu/taro.linux-x64-gnu.node: undefined symbol: __libc_single_threaded
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1282:18)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
at Module.require (node:internal/modules/cjs/loader:1100:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> (/builds/shifu_admin/shangxue_user/node_modules/.pnpm/@tarojs+binding@3.6.22/node_modules/@tarojs/binding/binding.js:188:31)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Object.newLoader [as .js] (/builds/shifu_admin/shangxue_user/node_modules/.pnpm/pirates@4.0.6/node_modules/pirates/lib/index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:1076:32) {
code: 'ERR_DLOPEN_FAILED'
}
升级到3.6.23也会有同样的报错问题
同遇到,有结论了吗?
CI构建遇到了相同的问题
27 |
28 | Error: Cannot find module '@tarojs/binding-linux-x64-musl'
29 | Require stack:
30 | - /drone/src/node_modules/@tarojs/binding/binding.js
31 | - /drone/src/node_modules/@tarojs/cli/dist/create/project.js
32 | - /drone/src/node_modules/@tarojs/cli/dist/index.js
33 | - /drone/src/node_modules/@tarojs/cli/index.js
34 | - /drone/src/config/index.ts
35 | - /drone/src/node_modules/@tarojs/service/dist/Config.js
36 | - /drone/src/node_modules/@tarojs/service/dist/index.js
37 | - /drone/src/node_modules/@tarojs/service/index.js
38 | - /drone/src/node_modules/@tarojs/cli/dist/cli.js
39 | - /drone/src/node_modules/@tarojs/cli/bin/taro
40 | at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
41 | at Function.Module._load (node:internal/modules/cjs/loader:922:27)
42 | at Module.require (node:internal/modules/cjs/loader:1143:19)
43 | at require (node:internal/modules/cjs/helpers:110:18)
44 | at Object.
相关平台
H5
使用框架: React
复现步骤
Dockerfile:
FROM node:18-alpine ...
docker build .....
期望结果
docker build 成功
实际结果
1.151 > taro build --type h5 1.151 1.814 👽 Taro v3.6.21 1.815 2.202 Error: Cannot find module '@tarojs/binding-linux-x64-musl' 2.202 Require stack: 2.202 - /app/node_modules/.pnpm/@tarojs binding@3.6.21/node_modules/@tarojs/binding/binding.js
环境信息