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

2.0.0-beta.11 weapp编译过程报错,h5编译正常 #5197

Closed
licanbluesea opened this issue Dec 26, 2019 · 4 comments
Closed

2.0.0-beta.11 weapp编译过程报错,h5编译正常 #5197

licanbluesea opened this issue Dec 26, 2019 · 4 comments
Assignees

Comments

@licanbluesea
Copy link

问题描述

当npm run dev:weapp 时,出现ModuleNotFoundError: Module not found: Error: Can't resolve '../package' in '/Users/xxxx/development/taro-lab/node_modules/elliptic/lib'的错误。经初步调式发现runner没有正常解释带.json后续的文件。

复现步骤

  1. npm run dev:weapp
    image
    2.经过代码调试发现
    image

期望行为

可以正常编译

系统信息

Taro CLI 2.0.0-beta.11 environment info:
    System:
      OS: macOS 10.15.2
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.13.0 - /usr/local/bin/node
      Yarn: 1.19.1 - /usr/local/bin/yarn
      npm: 6.11.3 - /usr/local/bin/npm
    npmPackages:
      @tarojs/async-await: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/components: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/mini-runner: ^2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/mobx: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/mobx-h5: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/mobx-rn: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/plugin-babel: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/plugin-csso: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/plugin-less: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/plugin-uglifyjs: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/rn-runner: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/router: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/taro: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/taro-alipay: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/taro-h5: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/taro-qq: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/taro-swan: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/taro-tt: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/taro-weapp: 2.0.0-beta.11 => 2.0.0-beta.11 
      @tarojs/webpack-runner: 2.0.0-beta.11 => 2.0.0-beta.11 
      eslint-config-taro: 2.0.0-beta.11 => 2.0.0-beta.11 
      eslint-plugin-taro: 2.0.0-beta.11 => 2.0.0-beta.11 
      nerv-devtools: ^1.4.0 => 1.5.6 
      nervjs: ^1.4.0 => 1.5.6 
      stylelint-config-taro-rn: 2.0.0-beta.11 => 2.0.0-beta.11 
      stylelint-taro-rn: 2.0.0-beta.11 => 2.0.0-beta.11 

@taro-bot
Copy link

taro-bot bot commented Dec 26, 2019

CC @luckyadam

@taro-bot
Copy link

taro-bot bot commented Dec 26, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@luckyadam
Copy link
Member

升级到 2.0.0-beta.12 试试

@licanbluesea
Copy link
Author

@luckyadam ,可以完美!

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