Cannot set headers after they are sent to the client (Nuxt3 + Nitro) #1196
Answered
by
sergeev-vn
sergeev-vn
asked this question in
Q&A
-
Hi guys! Maybe someone faced such an issue? Project on Nuxt v.3.4.2 and Nitro v.2.3.3 When we use the standard function of Nuxt navigateTo in router middleware, the router middleware is called 2 times on the server side and this error occurs:
|
Beta Was this translation helpful? Give feedback.
Answered by
sergeev-vn
Apr 28, 2023
Replies: 1 comment
-
This is due to standard vue-router behavior... But this doesn't change the fact that the error is and will always be on all Nuxt projects ☹ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sergeev-vn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is due to standard vue-router behavior...
https://stackblitz.com/edit/github-8dvck9?file=src/router.ts
But this doesn't change the fact that the error is and will always be on all Nuxt projects ☹