vite icon indicating copy to clipboard operation
vite copied to clipboard

Can't use v-runtime-template along with the Nuxt Vite

Open Asef00 opened this issue 3 years ago • 0 comments

Versions

nuxt-vite: 0.3.5 nuxt: 2.15.8 v-runtime-template: 1.10.0

Reproduction

  1. npm init nuxt-app <project-name>
  2. npm i -D nuxt-vite
  3. npm install v-runtime-template
  4. Add the following to nuxt.config.js:
buildModules: ["nuxt-vite"],

build: {
  extend(config, { isDev, isClient }) {
    config.resolve.alias["vue"] = "vue/dist/vue.common";
  },
},
  1. try using v-runtime-template

Description

I'm getting the following warning and nothing shows up. Didn't find any solution yet:

[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

https://github.com/Asef00/nuxt-vite

Asef00 avatar Jul 14 '22 17:07 Asef00