Closed felquis closed 6 years ago
did you use the https://github.com/i18next/i18next-express-middleware#language-detection !?!
full server.js might help...
I did a quickfix by checking if the headers are set before setting the cookies. I thought it was fixed with 1.0.10 but I realized I had the cache set to false :) I will create a PR for the fix as soon as I can.
I'm getting this error, I think it is related to this module, I used the example from react-i18next, with nextjs.
I'm using this detection config:
My browser is in pt-BR, and I request the page with ?lng=en, I think it sets up the pt-BR language, then it tries to set to en and the server crashes with this error.
I can post the entire server.js if it would help.