-
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
问题描述
工程初始目标质量堪忧,初始化模板项目基本无法使用
复现链接
https://github.com/NervJS/taro
复现步骤
React
PS D:\ProjectR\vue\taro-rn> taro init
👽 Taro v4.1.5
Taro 即将创建一个新项目!
Need help? Go and open issue: https://tls.jd.com/taro-issue-helper
? 请输入项目名称! react
? 请输入项目介绍 react
? 请选择框架 React
? 是否需要使用 TypeScript ? Yes
? 是否需要编译为 ES5 ? No
? 请选择 CSS 预处理器(Sass/Less/Stylus) Sass
? 请选择包管理工具 npm
? 请选择编译工具 Vite
? 请选择模板源 Gitee(最快)
√ 拉取远程模板仓库成功!
? 请选择模板 react-NutUI(NutUI + React 模板(https://nutui.jd.com/react/))
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: react@1.0.0
npm error Found: @tarojs/components@4.1.5
npm error node_modules/@tarojs/components
npm error @tarojs/components@"4.1.5" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @tarojs/components@"^3.6.0" from @tarojs/test-utils-react@0.1.1
npm error node_modules/@tarojs/test-utils-react
npm error dev @tarojs/test-utils-react@"^0.1.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
环境信息
Taro CLI 4.1.5 environment info:
System:
OS: Windows 11 10.0.26100
Binaries:
Node: 22.17.1 - C:\Program Files\nodejs\node.EXE
npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
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-harmony-hybrid: 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-rn: ^4.1.5 => 4.1.5
@tarojs/vite-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
expo: ~50.0.2 => 50.0.21
react: ^18.0.0 => 18.2.0
react-native: ^0.73.11 => 0.73.11开源贡献
- 我愿意修复这个错误。请参考 (贡献指南)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Status