vite
vite copied to clipboard
Can't use v-runtime-template along with the Nuxt Vite
Versions
nuxt-vite: 0.3.5 nuxt: 2.15.8 v-runtime-template: 1.10.0
Reproduction
-
npm init nuxt-app <project-name> -
npm i -D nuxt-vite -
npm install v-runtime-template - Add the following to
nuxt.config.js:
buildModules: ["nuxt-vite"],
build: {
extend(config, { isDev, isClient }) {
config.resolve.alias["vue"] = "vue/dist/vue.common";
},
},
- 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.