DEV Community

Discussion on: Vue3 on Rails

Collapse
 
phaedryx profile image
Tad Thorley • Edited

I'm trying to follow this guide, but to mount Vue apps to existing HTML. I keep getting the error

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"
Enter fullscreen mode Exit fullscreen mode

It seems like this should work:

const customConfig = {
  resolve: {
    alias: {
      ...
      vue: 'vue/dist/vue.esm-bundler.js'
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

but I still get the same error. Has anyone encountered this? Where have I gone wrong?