sharpdev's avatar

Compiling Vue 3 with mix

This is soon as is it was only released yesterday https://github.com/vuejs/vue-next/releases/tag/v3.0.0 I have installed and using this: https://www.npmjs.com/package/laravel-mix-vue3 However single file components won't compile as the vue-template-compiler (this doesn't appear to be used anymore in vue 3) is not the same version and the javascript won't compile without it.

Is there currently a workaround for this or is there something i've not read?

0 likes
2 replies
sharpdev's avatar

Whoops. Something i've not read:

npm install @types/webpack-env @vue/compiler-sfc vue-loader@next laravel-mix-vue3 --save-dev

[SOLVED]

2 likes
JoshuaD's avatar

Thank you! I was having trouble finding out how to migrate to Vuejs 3 within Laravel.

Please or to participate in this conversation.