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

1.3.0.beta 打包漏掉引用的文件 #3135

Closed
hao-li opened this issue May 22, 2019 · 5 comments
Closed

1.3.0.beta 打包漏掉引用的文件 #3135

hao-li opened this issue May 22, 2019 · 5 comments
Assignees

Comments

@hao-li
Copy link

hao-li commented May 22, 2019

问题描述
支付宝小程序引用 mini-html-parser2 后,打包时会漏掉该包引用的一个文件

复现步骤

  1. git clone git@github.com:hao-li/taro-problem-sample.git
  2. yarn
  3. yarn build:alipay
  4. 使用 Mini Program Studio(支付宝开发者工具)打开 dist/alipay 目录
  5. 使用 Mini Program Studio 模拟器查看

期望行为
正常显示出 Hello world!

报错信息
Failed to compile.
(undefined) ./npm/mini-html-parser2/lib/Tokenizer.js
Module not found: Can't resolve '../../entities/maps/legacy.json'

系统信息

👽 Taro v1.3.0-beta.3


  Taro CLI 1.3.0-beta.3 environment info:
    System:
      OS: macOS 10.14.4
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 11.10.0 - /usr/local/bin/node
      Yarn: 1.15.2 - /usr/local/bin/yarn
      npm: 6.9.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/plugin-babel: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/plugin-csso: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/plugin-sass: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/plugin-uglifyjs: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/router: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/taro: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/taro-alipay: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/taro-h5: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/taro-swan: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/taro-weapp: 1.3.0-beta.3 => 1.3.0-beta.3
      @tarojs/webpack-runner: 1.3.0-beta.3 => 1.3.0-beta.3
      eslint-config-taro: 1.3.0-beta.3 => 1.3.0-beta.3
      eslint-plugin-taro: 1.3.0-beta.3 => 1.3.0-beta.3
      nervjs: ^1.4.0-beta.3 => 1.4.0-beta.4

补充信息
这个文件在 node_modules 确实是存在的,但是打包后 dist/alipay/npm 下就没有
之前使用 1.2.26 时是正常的,应该是 1.3.0.beta 新引入的问题

@taro-bot
Copy link

taro-bot bot commented May 22, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented May 23, 2019

CC @luckyadam

@hao-li
Copy link
Author

hao-li commented May 24, 2019

该问题在 v1.3.0-beta.4 依然存在

👽 Taro v1.3.0-beta.4


  Taro CLI 1.3.0-beta.4 environment info:
    System:
      OS: macOS 10.14.4
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 11.10.0 - /usr/local/bin/node
      Yarn: 1.15.2 - /usr/local/bin/yarn
      npm: 6.9.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/plugin-babel: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/plugin-csso: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/plugin-sass: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/plugin-uglifyjs: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/router: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/taro: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/taro-alipay: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/taro-h5: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/taro-swan: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/taro-weapp: 1.3.0-beta.4 => 1.3.0-beta.4
      @tarojs/webpack-runner: 1.3.0-beta.4 => 1.3.0-beta.4
      eslint-config-taro: 1.3.0-beta.4 => 1.3.0-beta.4
      eslint-plugin-taro: 1.3.0-beta.4 => 1.3.0-beta.4
      nervjs: ^1.4.0-beta.4 => 1.4.0-beta.4

@hao-li
Copy link
Author

hao-li commented May 27, 2019

问题描述
升级 1.3.0-beta.5 后 支付宝正常,但是微信又出问题了 @luckyadam

复现步骤

  1. git clone git@github.com:hao-li/taro-problem-sample.git
  2. yarn
  3. yarn build:weapp
  4. 使用微信开发者工具打开 dist/weapp 目录
  5. 使用微信开发者工具模拟器查看

期望行为
正常显示出 Hello world!

报错信息
image

系统信息

👽 Taro v1.3.0-beta.5


  Taro CLI 1.3.0-beta.5 environment info:
    System:
      OS: macOS 10.14.4
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 11.10.0 - /usr/local/bin/node
      Yarn: 1.15.2 - /usr/local/bin/yarn
      npm: 6.9.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/plugin-babel: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/plugin-csso: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/plugin-sass: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/plugin-uglifyjs: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/router: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/taro: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/taro-alipay: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/taro-h5: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/taro-swan: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/taro-tt: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/taro-weapp: 1.3.0-beta.5 => 1.3.0-beta.5
      @tarojs/webpack-runner: 1.3.0-beta.5 => 1.3.0-beta.5
      eslint-config-taro: 1.3.0-beta.5 => 1.3.0-beta.5
      eslint-plugin-taro: 1.3.0-beta.5 => 1.3.0-beta.5
      nervjs: ^1.4.0-beta.4 => 1.4.0-beta.4

@nearzeno
Copy link

我build:weapp打包,有的时候漏有的时候不漏文件,真是神奇,每次打包都是靠命

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants