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

lat4732's avatar
Level 12

Component provided template option but runtime compilation is not supported in this build of Vue.

I'm receiving the following error

[Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js". 
  at <App>

How can I fix this?

0 likes
2 replies
lat4732's avatar
lat4732
OP
Best Answer
Level 12

Changing this

import { createApp } from 'vue';

to this

import { createApp } from "vue/dist/vue.esm-bundler";

solved the problem

8 likes

Please or to participate in this conversation.