Polak
Hydration Error
Hello Nuxt Gang.
I have run into some trouble. I have a project I am trying to work on and I have been experiencing hydration errors recently. This is the error I am getting:
I cant seem to understand whats going on. For what I understand, it is an error in my auth js layout? But whats wrong here?
30 replies
unable to verify the first certificate
Hi Nuxt community! I recently got a new laptop and I'm trying to create a new project on it. I am running Nuxt as a frontend and Laravel as backend. I cloned the project down from github and imported the SSL key and certificate from the old laptop but they were not accepted. So I created a new certificate and key using:
and then i verified it by writing:
and that seems to working great.
Then I went into nuxt to define the keys in my nuxt config by doing so:
but doing so, i still get errors with the ceriticate:
I am using the nuxt-auth-sanctum package. Anyone has an idea?
Macbook Pro M4
Nuxt V3
Laravel 11
10 replies
Has anyone played around with "nuxt-auth-sanctum"? I have some issues.
Link to module: https://manchenkoff.gitbook.io/nuxt-auth-sanctum
So where is my issue? I've managed to setup everything on Laravel 11 as for sanctum, but my issue is that my Nuxt app sends the GET /api/user request without the Application/json header.
My question is, does anyone know how I can solve this? OR how else would you setup authentication with laravel 11 nowadays?
I get this error from nuxt because the request doesnt have the right header:
If I call the same endpoint from Hoppscotch (postman) with the right header, then it works.
I am looking for both tips, other recommendations to auth etc. I am fairly new to Nuxt and Laravel.
20 replies
(Solved) Nuxt with SASS - Legacy Deprecation
Hi.
I am runnning into an issue while trying to use sass with Nuxt 3 project. I'm more of a do it yourself type of guy and therefore would like to use SASS. The sass package I use though, is throwing deprecation errors:
Does anyone know the solution to this? I have thought about saying f*ck it and use prepros to compile to css and just load that file, but then I loose the possibility to have scoped styling. Maybe I dont need a sass package at all? is it supported by default?
6 replies
i18n fallback issues
Heya people. I've recently moved away from NextJS over to Vue and I'm trying to setup the most important things and one of them is i18n. It works so smoothly compared to next and I love it so far. One thing I am not happy with though is the fallbackLocale feature on the i18n package. The documentation says I should do it in this way but the editor says it is wrong. Any ideas?
Documentation says I should it like this:
But I get the error:
^ On line with "fallbackLocale"
Any suggestions? 😄
33 replies