-
Notifications
You must be signed in to change notification settings - Fork 91
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
Router warnings on cold start when resolving virtual sass modules #340
Comments
You can add Remove vuetify: {
autoImport: true,
styles: {
configFile: './assets/settings.scss'
}
} This should solve any issue with sass: you should also replace EDIT: I have sent a PR a few weeks ago here to solve SSR and SASS issues => #338 |
Thanks, @userquin, for the information! Just to confirm, does this mean that Currently, I’m including my settings with: modules: [
(_options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', (config) => {
// @ts-expect-error
config.plugins.push(vuetify({
autoImport: true,
styles: {
configFile: 'scss/settings.scss',
},
}))
})
},
...
] |
No, you will use it in the new module but only to auto import vuetify components: you can remove that inlined module, the new module will register it properly disabling styles plugin adding a new one to solve the sass issues. EDIT: vite-plugin-vuetify will register Vite auto import and style plugins, the new module will use it only for auto import veutify stuff disabling styles plugin registration, will register a new custom styles plugin to deal with new Vite 4.2 SASS (modern-api) and SSR |
After upgrading to Nuxt version
3.14.159
, I encounter persistent router warnings on a cold start related to the resolution of virtual Sass modules provided by Vuetify. These warnings do not appear on subsequent hot reloads, but they show up consistently after a full restart (cold start). This issue seems to be similar to the one described in vuetifyjs/nuxt-module#150My package versions:
The text was updated successfully, but these errors were encountered: