-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
outdated dependency @types/cookie causes type mismatch #690
Comments
hello sir. I got the same error. |
Hello, I got the same error. How do we solve that? |
I couldn't find a better way other than just use type assertion, ugly I know: await getIronSession<SessionData>(cookies() as any, config) |
I tried something similar, it worked, thank you very much! |
Hey there, I upgraded cookies to 0.6.0 this should be solved? Let me know! |
8.0.2 was released |
Hello, I just updated to test, but I still get the same thing: "Argument of Type" Readonlyrequestcookies 'is not asquisignable to parameter of type' cookiestore'.ts (2345) |
@murieldelvaux Is there any chance you can create a simple github repository showing the issue? I do not get the problem currently. |
I was able to resolve this by directly depending on |
Hey there,
I'm seeing a TS error when passing Nextjs's
cookies()
function togetIronSession
It seems like the
priority
attribute has been added to the types in@types/cookie@0.6.0
, but this library is still on0.5.4
The text was updated successfully, but these errors were encountered: