babel-plugin-transform-vue-jsx
babel-plugin-transform-vue-jsx copied to clipboard
[Vue warn]: Error in data(): "TypeError: Cannot read property '$createElement' of undefined"
example url:
https://github.com/iwangx/jsx-example/tree/transform-vue-jsx
When I run npm run serve there will be an error.
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.