Subscribe on changes!

3.3升级后jsx遇到问题及解决方法

avatar
May 22nd 2023

Vue version

vue3.3 vue-loader 17.1.1 @vue/cli-service 5.0.0,

Link to minimal reproduction

demo

Steps to reproduce

在3.2版本中使用了jsx 语法,配置了bable module.exports = { presets: ['@vue/cli-plugin-babel/preset'], plugins: ['@vue/babel-plugin-jsx'], } 完全可以使用,但是最近升级到vue3.3 vue-loader 17.1.1 @vue/cli-service 5.0.0,后出现 [vue/compiler-sfc] This experimental syntax requires enabling one of the following parser plugin(s): "jsx", "flow", "typescript".

What is expected?

预期在升级后jsx 可以正常运行

What is actually happening?

版本升级后需要在