nuxt / vite

⚡ Vite Experience with Nuxt 2

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using less in SFC cause error: Preprocessor dependency "less" not found

Wiihame opened this issue · comments

Versions

nuxt-vite: 0.1.1
nuxt: 2.15.7

Reproduction

https://github.com/Wiihame/nuxt-vite-less

Description

When I use less in style tag in SFC, vite cause preprocessor dependency error for less. like this:
code:
image

terminal:
image

I'm having the same issue but with sass/scss, downgrading to nuxt-vite@0.1.0 resolves this, not sure what causes it though.

I'm having the same issue but with sass/scss, downgrading to nuxt-vite@0.1.0 resolves this, not sure what causes it though.

Thanks. I had solved this problem by downgrading to vite@2.3.4, also not sure what causes it though😂

same issue,use vant

Updating to nuxt-vite@0.2.4 has fixed this issue for me (see #162). Can imagine it will work when using less preprocessor as well @Wiihame.

Updating to nuxt-vite@0.2.4 has fixed this issue for me (see #162). Can imagine it will work when using less preprocessor as well @Wiihame.

Thanks! I will try it later