jd-opensource / jd-opensource/taro-ui
taro2.2.6 安装 taro-ui 后无法启动
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
### Taro UI 版本信息
v2.3.4
### 问题描述
使用taro创建项目后,可以启动 npm run dev:h5, 安装taro-ui后无法启动,提示“项目依赖 @tarojs/taro-h5 未安装,或安装有误,请重新安装此依赖”,已增加 esnextModules: ['taro-ui'] 配置
### 复现步骤
1. taro init xxx
2. cd xxx
3. npm install taro-ui
4. npm run dev:h5
### 复现代码
1. taro init xxx
2. cd xxx
3. npm install taro-ui
4. npm run dev:h5
### 报错信息
警告 依赖安装 项目依赖 @tarojs/taro-h5 未安装,或安装有误,请重新安装此依赖!
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cloud@1.0.0 build:h5: `taro build --type h5 "--watch"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cloud@1.0.0 build:h5 script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
### 系统信息
👽 Taro v2.2.6
Taro CLI 2.2.6 environment info:
System:
OS: macOS 10.14.6
Shell: 5.3 - /bin/zsh
Binaries:
Node: 12.8.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.13.6 - /usr/local/bin/npm
npmPackages:
@tarojs/components: 2.2.6 => 2.2.6
@tarojs/components-qa: 2.2.6 => 2.2.6
@tarojs/mini-runner: 2.2.6 => 2.2.6
@tarojs/router: 2.2.6 => 2.2.6
@tarojs/taro-alipay: 2.2.6 => 2.2.6
@tarojs/taro-qq: 2.2.6 => 2.2.6
@tarojs/taro-quickapp: 2.2.6 => 2.2.6
@tarojs/taro-rn: 2.2.6 => 2.2.6
@tarojs/taro-swan: 2.2.6 => 2.2.6
@tarojs/taro-tt: 2.2.6 => 2.2.6
@tarojs/taro-weapp: 2.2.6 => 2.2.6
@tarojs/webpack-runner: 2.2.6 => 2.2.6
eslint-config-taro: 2.2.6 => 2.2.6
eslint-plugin-taro: 2.2.6 => 2.2.6
nerv-devtools: ^1.5.5 => 1.5.6
stylelint-config-taro-rn: 2.2.6 => 2.2.6
stylelint-taro-rn: 2.2.6 => 2.2.6
taro-ui: ^2.3.4 => 2.3.4
### 补充信息
Contributor guide
Assessment
This issue has not been assessed yet.