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

@babel/plugin-proposal-class-properties has been deprecated #16193

Open
ianzone opened this issue Jul 28, 2024 · 1 comment
Open

@babel/plugin-proposal-class-properties has been deprecated #16193

ianzone opened this issue Jul 28, 2024 · 1 comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-4 Version - 4.x

Comments

@ianzone
Copy link

ianzone commented Jul 28, 2024

相关平台

微信小程序

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

复现步骤

看声明 https://www.npmjs.com/package/@babel/plugin-proposal-class-properties

期望结果

将 @babel/plugin-proposal-class-properties 无缝替换为 @babel/plugin-transform-class-properties

实际结果

替换之后报错 [babel] [BABEL] D:\test\taro4\D:\test\taro4\src\app.ts?entry-loader=true: Cannot find module '@babel/plugin-proposal-class-properties'

环境信息

Taro v4.0.3


  Taro CLI 4.0.3 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 20.16.0 - C:\Program Files\nodejs\node.EXE
      npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 4.0.3 => 4.0.3
      @tarojs/components: 4.0.3 => 4.0.3
      @tarojs/helper: 4.0.3 => 4.0.3
      @tarojs/plugin-framework-react: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-alipay: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-h5: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-weapp: 4.0.3 => 4.0.3
      @tarojs/react: 4.0.3 => 4.0.3
      @tarojs/runtime: 4.0.3 => 4.0.3
      @tarojs/shared: 4.0.3 => 4.0.3
      @tarojs/taro: 4.0.3 => 4.0.3
      @tarojs/vite-runner: 4.0.3 => 4.0.3
      babel-preset-taro: 4.0.3 => 4.0.3
      react: ^18.3.1 => 18.3.1
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jul 28, 2024
@TheKonka TheKonka added V-4 Version - 4.x and removed V-3 Version - 3.x labels Jul 28, 2024
This was referenced Aug 3, 2024
@ianzone
Copy link
Author

ianzone commented Aug 11, 2024

有人跟进一下吗?

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-4 Version - 4.x
Projects
Status: Todo
Development

No branches or pull requests

2 participants