Skip to content
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

Uncaught (in promise) TypeError: h is not a function #182

Closed
tomasgil123 opened this issue Feb 20, 2021 · 1 comment
Closed

Uncaught (in promise) TypeError: h is not a function #182

tomasgil123 opened this issue Feb 20, 2021 · 1 comment

Comments

@tomasgil123
Copy link

I made a test component with jsx:

//test.jsx
import { defineComponent } from "vue";

export default defineComponent({
  render() {
    return <div>Parent</div>;
  }
});

When I try to use it the app crashes with the following error:
image

@haoqunjiang
Copy link
Member

This preset only supports Vue 2 JSX.
For Vue 3 projects please use https://github.com/vuejs/jsx-next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants