-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
请先确认
- 我已搜索并确定这个提交不是重复的
相关平台
- 所有小程序
- 微信小程序
- 支付宝小程序
- 百度小程序
- 字节跳动小程序
- QQ 轻应用
- 京东小程序
- 快应用平台(QuickApp)
- Web 平台(H5)
- 移动端(React-Native)
- 鸿蒙(harmony)
小程序基础库版本
3.0.0
使用框架
React
问题描述
升级 4.0 后,运行 dev:weapp 时报错 Cannot find module '@tarojs/binding-darwin-x64'
我发现最新的 @tarojs/binding-darwin-x64 包中 (Link #17895)
"engines": {
"node": "^20 || ^22"
},
当使用非 20,22 的 nodejs 安装时缺少依赖而引起错误
我认为其依赖的 nodejs 版本应该同 @swc/core 及 "node": ">=10"
(和 @tarojs/plugin-doctor-darwin-x64 也相同)
复现链接
复现步骤
- 安装非 20 22 版本的 nodejs
- 创建一个 tarojs 4.1.3 版本的项目
- 启动项目
环境信息
System:
OS: macOS 13.6.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 23.7.0
npmPackages:
@tarojs/cli: 4.1.3 => 4.1.3
@tarojs/components: 4.1.3 => 4.1.3
@tarojs/helper: 4.1.3 => 4.1.3
@tarojs/plugin-framework-vue3: 4.1.3 => 4.1.3
@tarojs/plugin-html: 4.1.3 => 4.1.3
@tarojs/plugin-inject: 4.1.3 => 4.1.3
@tarojs/plugin-mini-ci: 4.1.3 => 4.1.3
@tarojs/plugin-platform-weapp: 4.1.3 => 4.1.3
@tarojs/runtime: 4.1.3 => 4.1.3
@tarojs/shared: 4.1.3 => 4.1.3
@tarojs/taro: 4.1.3 => 4.1.3
@tarojs/webpack5-runner: 4.1.3 => 4.1.3
babel-preset-taro: 4.1.3 => 4.1.3
贡献代码
- 我愿意修复这个错误
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working