-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report][3.1.3] Vite Error "Failed to resolve entry for package vuetify" when importing Sass Module #16593
Comments
I'm getting this one as well, also from trying to import a config SCSS file before
which is imported from: import "./vuetify-config.scss";
import { aliases, mdi } from "vuetify/iconsets/mdi-svg";
import { createVuetify } from "vuetify";
export default createVuetify({
icons: {
defaultSet: "mdi",
aliases,
sets: {
mdi,
},
},
}); and results in:
Have confirmed that the import of the SCSS file is the only thing that causes the error EDIT: Seems to be a problem introduced with Vite 4.1.0+, I've bumped back to v4.0.4 and it works fine. |
Caused by vitejs/vite#11595, vite now has no way to resolve a different sass entry without vitejs/vite#7817 |
I opened vitejs/vite#11947 |
Yep, further to your comment in the Vite repo @KaelWD , using:
Seems to be the way to go. |
I see that te issue is closed from last week, but I still can't use vuetify on Nuxt 3.2 or 3.3.1. Is there any way or we need to wait for vite 4.2? @edit: getting same error on 3.1.10 |
To be clear, this fixed it for me: replace in my |
You can use vite 4.0 or 4.2-beta, this only exists with vite 4.1 |
Environment
Vuetify Version: 3.1.3
Vue Version: 3.2.47
Browsers: Google Chrome
OS: Windows
Steps to reproduce
@use "vuetify"
Expected Behavior
The project should run normally
Actual Behavior
Reproduction Link
https://stackblitz.com/edit/vitejs-vite-jdslxa?file=src/style.scss
The text was updated successfully, but these errors were encountered: