-
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
在vue文件中使用jsx语法编译出错 #17311
Comments
This was referenced Feb 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
复现仓库
https://github.com/yangYangxs/taro-demo.git
浏览器版本: Chrome 版本 118.0.5993.89(正式版本) (64 位)
使用框架: Vue 3
复现步骤
创建项目:
taro init taro-demo
vue3
typescript
: nES5
: ysass
npm
webpack5
Gitee
默认模板
babel.config.js
src/pages/index/index.vue
开发调试H5
cnpm run dev:h5
编译报错const msg = ref('hello msg')
return () => {msg.value}
^
期望结果
编译通过 并且在vue文件中能正常使用jsx语法
实际结果
const msg = ref('hello msg')
编译不通过
环境信息
补充信息
babel
The text was updated successfully, but these errors were encountered: