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.5.8后执行npm run dev:weapp 对使用了react-redux装饰器@connect的地方报错提示[ERROR] Unexpected "@" #12998

Closed
ChiJohn opened this issue Dec 19, 2022 · 5 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@ChiJohn
Copy link

ChiJohn commented Dec 19, 2022

相关平台

微信小程序

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

复现步骤

升级3.5.8后
对使用了react-redux装饰器@connect的地方

执行npm run dev:weapp报错提示[ERROR] Unexpected "@",

执行 npm run build:weapp 并没有提示

错误截图

期望结果

不提示 [X ERROR[]ERROR ]Unexpected "@"

实际结果

正常,不提示

环境信息

👽 Taro v3.5.8


  Taro CLI 3.5.8 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.18.1 - C:\topscore\software\nodejs\node.EXE
      npm: 8.19.2 - C:\topscore\software\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Dec 19, 2022
@yoyo837
Copy link
Contributor

yoyo837 commented Dec 19, 2022

babel 装饰器支持配置检查一下呢?

@fantasy525
Copy link

+1 ,taro 3.5.10 @yoyo837
image
image

@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 20, 2022

@ChiJohn 麻烦提供一下 demo

@yoyo837
Copy link
Contributor

yoyo837 commented Dec 21, 2022

@ChiJohn 麻烦提供一下 demo

和隔壁这个一样 #13007, 这个有 demo

@yoyo837
Copy link
Contributor

yoyo837 commented Dec 21, 2022

Duplicate of #13007

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

4 participants