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

从3.0.11更新到3.0.13后编译报错缺少包 需要手动安装2个babel包才行 #7751

Closed
ILoveChy opened this issue Sep 27, 2020 · 2 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@ILoveChy
Copy link

相关平台

微信小程序

小程序基础库: 2.13.0
使用框架: React

复现步骤

通过ncu -u升级package.json 然后 yarn 安装后 提示 Cannot find module '@babel/plugin-proposal-optional-chaining' 手动安装后再次编译提示 Cannot find module '@babel/plugin-transform-spread' 再次手动安装后编译成功

期望结果

可顺滑更新

实际结果

需要手动添加babel包才行

环境信息

� Taro v3.0.13


  Taro CLI 3.0.13 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.7.0 - D:\Program Files\nodejs\node.EXE
      Yarn: 1.22.5 - D:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.14.7 - D:\Program Files\nodejs\npm.CMD

补充信息

目测是之前一个PR里添加了可选链导致的? #7698

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Sep 27, 2020
@ZakaryCode
Copy link
Contributor

使用的第三方源安装么?第三方源同步错误会导致该问题,需要手动 sync 修复

@ILoveChy
Copy link
Author

使用的第三方源安装么?第三方源同步错误会导致该问题,需要手动 sync 修复

确实是因为这个原因 感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants