You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
Setup use arrow function works for me. It seems like the problem was caused by the auto-inject-h behavior of plugin @babel/plugin-transform-typescript used in my project.
When writing a jsx function in setup,
h = this.$createElement
will be automatically injected, but there is nothis
in setup, andh
has been injectedimport {h} from '@vue/composition-api'
babel.config.js
package.json dependencies
The text was updated successfully, but these errors were encountered: