https://github.com/PanJiaChen...
目前尝试过的:
npm install --save-dev babel-plugin-syntax-jsx babel-plugin-transform-vue-jsx babel-helper-vue-jsx-merge-props babel-preset-env
babel.config.js
module.exports = {
presets: [
'@vue/app'
],
'plugins': ['transform-vue-jsx']
}
错误信息:
Duplicate declaration "h" (This is an error on an internal node. Probably an internal error.)
请问有没有使用vue-element-admin
配置支持JSX的例子?
它里面就有用jsx,下下来安装就行了