pawelgabryelewicz / babel-preset-typescript-vue

TypeScript preset for Babel 7.x supporting Vue.js components written in TS
MIT License
22 stars 4 forks source link

Support for vue 3? #8

Open sdykae opened 4 years ago

sdykae commented 4 years ago

Hi, I found this plugin helpful but compiler with vue 3 doesn't work also, is there a way to support tsx?, i found other plugin, but maybe yours does the magic first https://github.com/HcySunYang/vue-next-jsx

./src/main.ts] 3.67 KiB {main} [built] [failed] [1 error]

ERROR in ./src/main.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: 

Vue packages version mismatch:

- vue@3.0.0-beta.20 (/Users/rkedlor/Documents/Vue/vue-next-webpack-tsx/node_modules/vue/index.js)
- vue-template-compiler@2.6.11 (/Users/rkedlor/Documents/Vue/vue-next-webpack-tsx/node_modules/vue-template-compiler/package.json)

This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.
akoidan commented 3 years ago

Bump

Coldsewoo commented 3 years ago

I've published separate package for vuejs3 on npm

https://www.npmjs.com/package/babel-preset-typescript-vue3

Its revised version of this package and will be temporal until author came back.

akoidan commented 3 years ago

Could you please add to readme for 3rd version use this package.