-
Notifications
You must be signed in to change notification settings - Fork 23
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
Weird vue router warnings on cold start #150
Comments
@daniandl we're checking what's the change in Nuxt, it is working properly in 3.8.0 |
@daniandl I'm going to release a new minor (breaking) updating to latest Nuxt (3.8.1), EDIT: seems to be there when using Node 18, on my local using Node 20.9.0 , cannot reproduce it (here an SB repro, using Node 18: https://stackblitz.com/edit/userquin-vuetify-nuxt-module-wzhs9k?file=playground%2Fnuxt.config.mts) |
Same issue. |
The next minor will not solve the error (linked PR): nuxt/cli#188 |
For me, when using Node v20.15.0, with this module in version 0.15.2 the issue is not present, and I do experience it after switching to 0.16.1 (having all the other dependencies in the latest version). |
can you try using latest 0.18.2 replacing You can check vuetifyjs/vuetify-loader#338, there are links to 2 PR with custom Vite plugin and custom Nuxt module (using SASS variables with and without SSR), checkout the corresponding branch (logic missing in main branch in both repositories) |
When I update to 0.18.2, I get other error instead, upon loading a page from the dev server (anonymized):
I am not willing to experiment with |
Try removing the |
This was after a clean installation, without |
@hermes85pl is your repo public? If not, can you provide the nuxt config file? |
I've also encountered this issue, using Nuxt 3.13.1 and vuetify-nuxt-module 0.18.2 ( and Node 20.15.1) I got a lot of Vue Router warnings for all the Vuetify components I use in the app and ENOENT errors for the components' Sass files. Setting nuxt to 3.10.0 and vuetify-nuxt-module to 0.15.2 got rid of the server log errors as far as I can tell but there are still errors in my console when I open dev tools on my browser. I'm open to troubleshooting this so I've made a branch in my project with the modules set to their latest versions. I've tried replacing sass with sass-embedded and also used overrides to set vite to 5.4.3. That didn't change the errors I was getting. I should note that I'm very new to Nuxt and have not worked extensively with Sass either. I've made my repo public. |
@theAvocadoCoder I'm going to do some changes:
I'll test your repo with pkg-pr-new from the new PR I'm preparing, I hope release NOTE: I cannot use |
@theAvocadoCoder seems to be working now, these are the dependencies (vuetify-nuxt-module from this PR #278, tested on Nuxt 3.13.1 and 3.12.4). can you update your "dependencies": {
"@nuxt/devtools": "^1.3.14",
"@pinia/nuxt": "^0.5.4",
"mongodb": "6.8",
"nuxt": "^3.13.1",
"pinia": "^2.2.2",
"vite": "^5.4.5",
"vue": "latest",
"vuetify": "^3.7.1"
},
"devDependencies": {
"@nuxtjs/tailwindcss": "^6.12.1",
"sass-embedded": "^1.78.0",
"vuetify-nuxt-module": "https://pkg.pr.new/vuetify-nuxt-module@278"
},
"overrides": {
"vue": "latest",
"vite": "^5.4.5"
} |
I'm not sure why the npm error happened, I use npm on my local. I've tested and this works. No errors or warnings related to the module in my browser console or the server logs and the styles are loading as they should. Thanks! |
@theAvocadoCoder thx, releasing |
@theAvocadoCoder |
Yup! It is. Thankss |
Just a note, I was able to avoid the npm error by adding the package throwing error as an optionalDependencies in my package.json, something to do with npm itself.
|
I can't reproduce this anymore with 0.18.3, Vite 5.4.10 and:
So I will close this for now :) |
Thanks for trying to tackle all these Nuxt<>Vuetify issues with this library.
I pretty much copied the playground setup with the configFile variant, because I want to customize the components.
It works fine, the hydration time and cold start time is a bit longer, but that's normal, as Vuetify docs said.
However, the server and client logs print this:
Just thought I'd document it, it's not really causing any issues (as far as I can tell).
Almost seems its the same issue we had to patch in the nitro response, except now its in vue router...
The text was updated successfully, but these errors were encountered: