-
Notifications
You must be signed in to change notification settings - Fork 4.9k
工程初始模板质量堪忧,建议发布前写个test脚本充分测试下 #18179
Copy link
Copy link
Open
Labels
F-reactFramework - ReactFramework - ReactT-alipayTarget - 编译到支付宝小程序Target - 编译到支付宝小程序T-ddT-feishuT-h5Target - 编译到 H5Target - 编译到 H5T-harmonyTarget - 编译到 HarmonyTarget - 编译到 HarmonyT-harmony_hybridTarget - 编译到 Harmony (Hybird 模式)Target - 编译到 Harmony (Hybird 模式)T-jdTarget - 编译到京东小程序Target - 编译到京东小程序T-kwaiT-qqTarget - 编译到 QQ 小程序Target - 编译到 QQ 小程序T-quickappTarget - 编译到快应用Target - 编译到快应用T-qyT-rnTarget - 编译到 React NativeTarget - 编译到 React NativeT-swanTarget - 编译到百度小程序Target - 编译到百度小程序T-ttTarget - 编译到字节跳动小程序Target - 编译到字节跳动小程序T-weappTarget - 编译到微信小程序Target - 编译到微信小程序V-4Version - 4.xVersion - 4.xbugSomething isn't workingSomething isn't working
Metadata
Metadata
Assignees
Labels
F-reactFramework - ReactFramework - ReactT-alipayTarget - 编译到支付宝小程序Target - 编译到支付宝小程序T-ddT-feishuT-h5Target - 编译到 H5Target - 编译到 H5T-harmonyTarget - 编译到 HarmonyTarget - 编译到 HarmonyT-harmony_hybridTarget - 编译到 Harmony (Hybird 模式)Target - 编译到 Harmony (Hybird 模式)T-jdTarget - 编译到京东小程序Target - 编译到京东小程序T-kwaiT-qqTarget - 编译到 QQ 小程序Target - 编译到 QQ 小程序T-quickappTarget - 编译到快应用Target - 编译到快应用T-qyT-rnTarget - 编译到 React NativeTarget - 编译到 React NativeT-swanTarget - 编译到百度小程序Target - 编译到百度小程序T-ttTarget - 编译到字节跳动小程序Target - 编译到字节跳动小程序T-weappTarget - 编译到微信小程序Target - 编译到微信小程序V-4Version - 4.xVersion - 4.xbugSomething isn't workingSomething isn't working
Type
Projects
Status
Todo
Status
Padding
请先确认
Taro 版本
v4
相关领域
None
使用框架
React
相关平台
小程序基础库版本
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开源贡献