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

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

Closed
Wiihame opened this issue Aug 11, 2021 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@Wiihame
Copy link

Wiihame commented Aug 11, 2021

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

@Wiihame Wiihame added the bug Something isn't working label Aug 11, 2021
@BobbieGoede
Copy link
Member

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.

@Wiihame
Copy link
Author

Wiihame commented Aug 20, 2021

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😂

@baixiaoyu2997
Copy link

same issue,use vant

@BobbieGoede
Copy link
Member

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.

@antfu antfu closed this as completed Sep 8, 2021
@Wiihame
Copy link
Author

Wiihame commented Sep 8, 2021

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

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

4 participants