Closed axelthat closed 5 years ago
@SanjayBanjade Not sure you have install the 4.0.1 version of the plugin (compatible with babel 7). You can try with npm i -D babel-plugin-transform-vue-jsx@4.0.1
@SanjayBanjade delete file ' .babelrc'. This should help.
@SanjayBanjade delete file ' .babelrc'. This should help.
居然删除.babelrc
you can either install babel-plugin-syntax-jsx
or just switch to the new preset for JSX: https://github.com/vuejs/jsx
为什么删除.babelrc,就可以了
@SanjayBanjade删除文件'.babelrc'。这应该有所帮助。
why delete this file,can you tell me the reason?
I recently updated my project. I did
ncu -a
to upgrade package.json and didnpm i -g webpack-cli --save-dev
andnpm i webpack-cli --save-dev
.After that I did
babel-upgrade --write --install
. However, I am getting the following error:Then did
npm i --save babel-plugin-transform-vue-jsx
which gave me the following errors:How do I fix this?