Skip to content
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

existingCookie.filter is not a function #6

Closed
calvinkei opened this issue May 22, 2020 · 5 comments
Closed

existingCookie.filter is not a function #6

calvinkei opened this issue May 22, 2020 · 5 comments

Comments

@calvinkei
Copy link

using next-i18next@beta and run yarn now-build, causing error existingCookie.filter is not a function

the issue is on cookie.js line 107, where existingCookie is supposed to be an array, but turns out to be an object instead

@adrai
Copy link
Member

adrai commented May 22, 2020

Will try to check for this, but can you please provide also a reproducable example?

@adrai
Copy link
Member

adrai commented May 22, 2020

Should be better with v1.2.1
Nevertheless, a reproducable example would be nice.

@calvinkei
Copy link
Author

on 1.2.1 i'm getting TypeError: c.indexOf is not a function

here is a reproducable example
https://github.com/calvinkei/i18next-http-middleware-error

try to run yarn now-build in the example, you should get TypeError: c.indexOf is not a function

as i mentioned that's probably due to existingCookie being an empty object

@adrai
Copy link
Member

adrai commented May 22, 2020

this is strange...
just released a new version...
I think the root cause is something different... the response object looks really strange...
Now I get an other error: TypeError: res.writeHead is not a function

but not coming from this module

@adrai
Copy link
Member

adrai commented May 22, 2020

@adrai adrai closed this as completed May 25, 2020
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

2 participants