Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

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

Open
Asef00 opened this issue Jul 14, 2022 · 0 comments
Open

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

Asef00 opened this issue Jul 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Asef00
Copy link

Asef00 commented Jul 14, 2022

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 Asef00 added the bug Something isn't working label Jul 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant