8000 Next.js client-side error on production in the version 4.3.0 · Issue #81 · andreizanik/cookies-next · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Next.js client-side error on production in the version 4.3.0 #81

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

Open
icaronowcm opened this issue Oct 9, 2024 · 2 comments
Open

Next.js client-side error on production in the version 4.3.0 #81

icaronowcm opened this issue Oct 9, 2024 · 2 comments

Comments

@icaronowcm
Copy link

"In this new update '4.3.0,' the library started throwing a new error in production. I fixed the version to '4.2.1,' and the error was gone!"

2117-15fb04c807f265ba.js:1 TypeError: argument name is invalid
at t.serialize (8669-d0ad87f3fcb942d0.js:1:38692)
at t.setCookie (8669-d0ad87f3fcb942d0.js:1:42580)
at layout-d5ef98a14567a2c8.js:1:23308
at aW (fd9d1056-e1f8238183e3a8d9.js:1:73244)
at oe (fd9d1056-e1f8238183e3a8d9.js:1:84685)
at ol (fd9d1056-e1f8238183e3a8d9.js:1:85323)
at or (fd9d1056-e1f8238183e3a8d9.js:1:85207)
at ol (fd9d1056-e1f8238183e3a8d9.js:1:86268)
at or (fd9d1056-e1f8238183e3a8d9.js:1:85207)
at ol (fd9d1056-e1f8238183e3a8d9.js:1:85303)

@enchorb
Copy link
enchorb commented Oct 9, 2024

+1 getting this as well

@bjarn
Copy link
bjarn commented Oct 21, 2024

I also stumbled on this issue. I used characters such as a semicolon in my key. Apparently, this is incompatible with the recent bump of cookies (#80).

See: jshttp/cookie#167

For me, changing the key to something else (in this case I used an underscore) fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0