nuxt / vite

⚡ Vite Experience with Nuxt 2

Home Page:https://vite.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Asef00 opened this issue · comments

commented

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