-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
mobx 页面index.jsx @inject('store') X [ERROR] Unexpected "@" #12336
Comments
taro-bot2
bot
added
F-react
Framework - React
T-weapp
Target - 编译到微信小程序
V-3
Version - 3.x
labels
Aug 20, 2022
@lceihen 没有复现,请升级到最新版再试试,或提供完整可复现 demo |
taro3.5.4 版本 我这边也是一样的错误 @inject("store")
@observer [ERROR] Unexpected "@"
✘ [ERROR] Expected identifier but found "@"
|
装饰器报错,哪位有解决方案了吗? |
把 jsx 改成 tsx ,或者 把装饰器改成原始函数调用 ,这对我有效 |
同问,有 jsx 解决方案了吗 |
看起来此issue大概率不会被修复,因为不影响到主流程的,我是这样解决的:在选择模板时不使用自带的mobx,选择cli安装完成后手动引入mobx6,目前没发现由于引入导致的bug |
别急啊, 挂几个月的issue老多了; 只要是问题, 应该支持的都可以尽量支持,member有时间会处理的, 也欢迎有意愿参与共建的提交PR; |
同问,有解决方案了吗? |
Duplicate of #13007 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
小程序基础库: vscode build报错
使用框架: React
复现步骤
直接安装 taro 3.5
期望结果
无报错
实际结果
报错
环境信息
The text was updated successfully, but these errors were encountered: