babel-plugin-transform-vue-jsx icon indicating copy to clipboard operation
babel-plugin-transform-vue-jsx copied to clipboard

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

Open iwangx opened this issue 6 years ago • 1 comments

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

iwangx avatar Dec 29 '18 03:12 iwangx

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.

iwangx avatar Dec 29 '18 03:12 iwangx