This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Bug: sass conflict with vue loader (Support @nuxtjs/style-resources - middleware/store) #29
Labels
bug
Something isn't working
Comments
According to #30 (comment) I need to add the .vue file to make the loader work
|
The thing left is how to support: @nuxtjs/style-resources:
$border-radius-common: 4px;
<style lang="scss" scoped>
.empty-data-frame {
border-radius: $border-radius-common;
}
</style> |
sondh0127
changed the title
Bug: sass conflict with vue loader
Bug: sass conflict with vue loader (Support @nuxtjs/style-resources)
Feb 26, 2021
=> Workaround with inline import <style lang="scss" scoped>
@import 'assets/scss/abstracts/_variables.scss';
.empty-data-frame {
border-radius: $border-radius-common;
}
</style> =>
So it actually points outside of the Nuxt app It should start from the root directory
|
sondh0127
changed the title
Bug: sass conflict with vue loader (Support @nuxtjs/style-resources)
Bug: sass conflict with vue loader (Support @nuxtjs/style-resources - middleware/store)
Feb 26, 2021
Hi! Unrelated but store and middleware support added in 0.0.9 (please use new issue if something is not working with them). |
The author added it. |
[ ]() |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
nuxt-vite: v0.0.7
nuxt: v2.14.12
Configuration
Reproduction
Here is reproduction repo: using
create nuxt-app
clihttps://github.com/sondh0127/nuxt21-vite
Description
I'm using sass in SFC, by following the Vite docs here
https://vitejs.dev/guide/features.html#css-pre-processors
But Vite could not resolve the loader from importing .vue components
The text was updated successfully, but these errors were encountered: