h3-session
h3-session copied to clipboard
`[nitro] [dev] [unhandledRejection]` Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they a re sent to the client
I haven't got a reproduction working on stackblitz, but here are the steps to do it (windows machine)
nuxi init
yarn add h3-session
copy paste the config in readme
then go to localhost:3000
The error will show in console
Should be yarn add h3-session
Should be
yarn add h3-session
Ur right, was copying it using my eyes. Do you have a clue on why this is happening
- Operating System:
Windows_NT
- Node Version:
v18.7.0
- Nuxt Version:
3.0.0
- Nitro Version:
1.0.0
- Package Manager:
[email protected]
- Builder:
vite
- User Config:
modules
,ssr
,session
- Runtime Modules:
h3-session/nuxt
- Build Modules:
-
heres npx nuxi info
btw
I'll try it on my windows machine later. Works as expected so far on Mac
I'll try it on my windows machine later. Works as expected so far on Mac
Thats a bummer
Unfortunately it's really hard to debug compiled files on nuxt so I don't even know what the exact cause is
I'm also having this issue, here's my nuxi info if that helps.
- Operating System:
Linux
- Node Version:
v18.10.0
- Nuxt Version:
3.0.0
- Nitro Version:
1.0.0
- Package Manager:
[email protected]
- Builder:
vite
- User Config:
modules
,session
,css
,build
,vite
,nitro
- Runtime Modules:
h3-session/nuxt
- Build Modules:
-
@rubennaatje thank you, I thought I was going crazy
Would be nice to have a simple repo I can play with
BTW, there's https://github.com/wobsoriano/nuxt-iron-session