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

模板执行 dev:weapp 报错 Error: [BABEL] xxx Cannot find module '@babel/plugin-proposal-class-properties' #17343

Open
axiangcoding opened this issue Feb 16, 2025 · 2 comments

Comments

@axiangcoding
Copy link

相关平台

微信小程序

复现仓库

https://github.com/axiangcoding/taro-demo
小程序基础库: 3.7.7
使用框架: Vue 3

复现步骤

创建模板即可重现
vue3 vite ts sass nutui

期望结果

正常执行

实际结果

无法执行并报错

环境信息

👽 Taro v4.0.9


  Taro CLI 4.0.9 environment info:
    System:
      OS: Windows 11 10.0.26100
    Binaries:
      Node: 22.14.0 - F:\Program Files\nodejs\node.EXE
      Yarn: 1.22.19 - F:\Program Files\nodejs\yarn.CMD
      npm: 9.7.2 - F:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 4.0.9 => 4.0.9
      @tarojs/components: 4.0.9 => 4.0.9
      @tarojs/helper: 4.0.9 => 4.0.9
      @tarojs/plugin-framework-vue3: 4.0.9 => 4.0.9
      @tarojs/plugin-html: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-alipay: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-h5: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-jd: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-qq: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-swan: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-tt: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-weapp: 4.0.9 => 4.0.9
      @tarojs/runtime: 4.0.9 => 4.0.9
      @tarojs/shared: 4.0.9 => 4.0.9
      @tarojs/taro: 4.0.9 => 4.0.9
      @tarojs/taro-loader: 4.0.9 => 4.0.9
      @tarojs/webpack5-runner: 4.0.9 => 4.0.9
      babel-preset-taro: 4.0.9 => 4.0.9
      eslint-config-taro: 4.0.9 => 4.0.9
@ianzone
Copy link

ianzone commented Feb 17, 2025

这个库早该在内部替换掉了,等他们合并 #17318
在这之前你可以单独安装 npm i -D @babel/plugin-proposal-class-properties

@axiangcoding
Copy link
Author

这个库早该在内部替换掉了,等他们合并 #17318 在这之前你可以单独安装 npm i -D @babel/plugin-proposal-class-properties

安装后好像微信小程序会报额外的错误,稍等我试下

This was referenced Feb 22, 2025
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

2 participants