-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Description
请先确认
- 我已搜索并确定这个提交不是重复的
Taro 版本
v4
相关领域
None
使用框架
React
相关平台
- 所有平台
- Web 端(H5)
- 移动端(React-Native)
- 鸿蒙(Harmony)
- 鸿蒙容器(Harmony Hybrid)
- ASCF 元服务
- 快应用(QuickApp)
- 所有小程序
- 微信小程序
- 企业微信小程序
- 京东小程序
- 百度小程序
- 支付宝小程序
- 支付宝 IOT 小程序
- 头条小程序
- QQ 小程序
- 钉钉小程序
- 飞书小程序
- 快手小程序
小程序基础库版本
No response
问题描述
taro build --type rn
👽 Taro v4.1.5
Taro 将不再支持 Node.js 小于 20 的版本。请升级 Node.js 至 20 或更高版本。
Welcome to Metro v0.80.12
Fast - Scalable - Integrated
error Unable to resolve module react-native-gesture-handler from /Users/net.cctv3.i/TestHarmonyOS/node_modules/@tarojs/rn-supporter/entry-file.js: react-native-gesture-handler could not be found within the project or in these directories:
node_modules
1 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^.
复现链接
无
复现步骤
初始化项目,选择React
,Webpack
yarn
npm run build:rn
直接报错:
taro build --type rn
👽 Taro v4.1.5
Taro 将不再支持 Node.js 小于 20 的版本。请升级 Node.js 至 20 或更高版本。
Welcome to Metro v0.80.12
Fast - Scalable - Integrated
error Unable to resolve module react-native-gesture-handler from /Users/net.cctv3.i/TestHarmonyOS/node_modules/@tarojs/rn-supporter/entry-file.js: react-native-gesture-handler could not be found within the project or in these directories:
node_modules
1 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^.
环境信息
➜ TestHarmonyOS git:(master) ✗ npx taro info
👽 Taro v4.1.5
Taro CLI 4.1.5 environment info:
System:
OS: macOS 14.3.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
Yarn: 3.6.4 - /usr/local/bin/yarn
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
npmPackages:
@tarojs/cli: 4.1.5 => 4.1.5
@tarojs/components: 4.1.5 => 4.1.5
@tarojs/components-rn: 4.1.5 => 4.1.5
@tarojs/helper: 4.1.5 => 4.1.5
@tarojs/plugin-framework-react: 4.1.5 => 4.1.5
@tarojs/plugin-platform-alipay: 4.1.5 => 4.1.5
@tarojs/plugin-platform-h5: 4.1.5 => 4.1.5
@tarojs/plugin-platform-jd: 4.1.5 => 4.1.5
@tarojs/plugin-platform-qq: 4.1.5 => 4.1.5
@tarojs/plugin-platform-swan: 4.1.5 => 4.1.5
@tarojs/plugin-platform-tt: 4.1.5 => 4.1.5
@tarojs/plugin-platform-weapp: 4.1.5 => 4.1.5
@tarojs/react: 4.1.5 => 4.1.5
@tarojs/rn-runner: 4.1.5 => 4.1.5
@tarojs/rn-supporter: 4.1.5 => 4.1.5
@tarojs/runtime: 4.1.5 => 4.1.5
@tarojs/runtime-rn: 4.1.5 => 4.1.5
@tarojs/shared: 4.1.5 => 4.1.5
@tarojs/taro: 4.1.5 => 4.1.5
@tarojs/taro-loader: 4.1.5 => 4.1.5
@tarojs/taro-rn: 4.1.5 => 4.1.5
@tarojs/webpack5-runner: 4.1.5 => 4.1.5
babel-preset-taro: 4.1.5 => 4.1.5
eslint-config-taro: 4.1.5 => 4.1.5
react: ^18.2.0 => 18.3.1
react-native: ^0.73.1 => 0.73.11
开源贡献
- 我愿意修复这个错误。请参考 (贡献指南)