Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

geerizzle's avatar

Vite Vue Runtime Compiler?

Just done the L9 upgrade and now switching over to Vite.

npm run build works fine, but because I add a CDN URL to all my assets I can't test with it locally until I publish it live.

npm run dev - runs, but console log tells me I'm using a runtime-only builld of Vue, so nothing renders.

I thought the answer was to add the alias: vue: 'vue/dist/vue.esm-bundler.js' but console.log 404s it.

Is that a Vue3 only thing, can I get it to work on Vue2 or do I need to add/use another package?

0 likes
4 replies
kneep's avatar

I'm having the same issue, but then on a Vue 2 project (v2.7.8), tried several things, but then i got this same error in the console or this one [Vue warn]: $attrs is readonly., but that's because then there are two instances of Vue loaded in I think...

Please or to participate in this conversation.