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

Two problem when using with vue-cli 3.0-beta.6

Open zhangbobell opened this issue 7 years ago • 2 comments

Thanks for providing such a cool plugin but when I use this latest version(v4.0.1) with vue-cli 3.0-beta 6:

  1. need to use "presets": ["@babel/preset-env"] not "presets": ["env"]. If not, you'll encounter Error likeTypeError: Cannot read property 'bindings' of null
  2. h auto injection seems invalid, I have to manually add h: CreateElement to render function parameter. If not, output error behaviors like #65

maybe need to get updated ?

zhangbobell avatar Mar 24 '18 17:03 zhangbobell

@nickmessing I'm facing the same issue

ShawshankLin avatar Nov 10 '18 17:11 ShawshankLin

@vue/babel-helper-vue-jsx-merge-props will help you

lovefreeprogramming avatar May 28 '19 12:05 lovefreeprogramming