Closed qiYuei closed 2 years ago
https://github.com/vuejs/jsx-vue2/issues/183
presets: [
[
'@vue/cli-plugin-babel/preset',
{
jsx: {
compositionAPI: true,
},
},
],
],
Stale issue message
Create projects with Vuecli5 ,When writing a jsx function in setup, h = this.$createElement will be automatically injected, but there is no this in setup, and h has been injected import {h} from '@vue/composition-api'
Console error message
version
"@vue/composition-api": "^1.6.1" "@vue/babel-helper-vue-jsx-merge-props": "^1.2.1", "@vue/babel-preset-jsx": "^1.2.4",