-
Notifications
You must be signed in to change notification settings - Fork 96
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
When writing a jsx function in setup, h = this.$createElement
will be automatically injected
#183
When writing a jsx function in setup, h = this.$createElement
will be automatically injected
#183
Comments
Could you provide a code snippet as a reproduction? |
@sodatea please take a look at this https://github.com/Jonny-china/composition-api-jsx-demo , thank you. |
It's because the dependency version isn't up-to-date 😂
Please run I should release a new patch of Vue CLI to force using the latest |
@sodatea Thanks, it turned out to be the problem, it took me a long time. |
To avoid issues like vuejs/jsx-vue2#183
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: