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

[Vue warn]: Error in data(): "TypeError: Cannot read property '$createElement' of undefined" #168

Open
iwangx opened this issue Dec 29, 2018 · 1 comment

Comments

@iwangx
Copy link

iwangx commented Dec 29, 2018

example url:
https://github.com/iwangx/jsx-example/tree/transform-vue-jsx
When I run npm run serve there will be an error.

@iwangx
Copy link
Author

iwangx commented Dec 29, 2018

So, I suggest that if you can find $createElement in the current near scope, don't define $createElement, because in many cases we will pass in $createElement ourselves, and if you redefine it yourself, many problems will arise.

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

1 participant