Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TARO_BUILD_TYPE=ui taro build --ui 过程中 taro-cli 内相对路径依赖找不到 #6964

Closed
yacheng opened this issue Jul 8, 2020 · 2 comments
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@yacheng
Copy link

yacheng commented Jul 8, 2020

相关平台

支付宝小程序

复现仓库

https://github.com/NervJS/taro/blob/next/packages/taro-cli/src/presets/platforms/ui.ts#L21
小程序基础库: 1.12.15
使用框架: React

复现步骤

https://github.com/NervJS/taro/blob/next/packages/taro-cli/src/presets/platforms/ui.ts 中很多相对路径引用已经失效
例如:
require('../../h5');
require('../../ui/quickapp');
require('../../rn_bak');

期望结果

修复路径问题引起的构建异常

实际结果

无法正常 build

环境信息

Taro CLI 3.0.0-rc.6 environment info:
    System:
      OS: macOS 10.15.4
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.18.2 - /usr/local/bin/node
      npm: 6.14.5 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.2 => 3.0.2
      @tarojs/mini-runner: 3.0.2 => 3.0.2
      @tarojs/react: 3.0.2 => 3.0.2
      @tarojs/runtime: 3.0.2 => 3.0.2
      @tarojs/taro: 3.0.2 => 3.0.2
      @tarojs/webpack-runner: 3.0.2 => 3.0.2
      babel-preset-taro: 3.0.2 => 3.0.2
      eslint-config-taro: 3.0.2 => 3.0.2
      react: ^16.10.0 => 16.13.1
@taro-bot2 taro-bot2 bot added F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x labels Jul 8, 2020
@lentoo
Copy link

lentoo commented Jul 27, 2020

这个修复了吗??

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 30, 2020

Taro 3 创建 UI 库不再需要 build --ui 命令了,这是 Taro 3 创建 UI 库的示例项目:https://github.com/NervJS/taro-uilib-react

@Chen-jj Chen-jj closed this as completed Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants