-
Notifications
You must be signed in to change notification settings - Fork 38
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
null is not an object (evaluating 'window.localStorage.getItem') #80
Comments
Since I'm using next export with no SSR I suspect this issue might be caused by private browsing not allowing to access localStorage. And also I'm using v2 of your package since the project uses pages router. I would like to contribute in fixing this issue if you're accepting PRs. |
Thank you for reporting your issue. Unfortunately, browser behaviour regarding local storage and private browsing is far from standardised. I can offer you two solutions. First, could you consider using the query string instead of the local storage by setting Have a great day, Martin |
Hello @martinkr! Thanks for the quick response! Currently I've omitted this languageDataStore field. Let me try with query instead. |
Can we close the issue? |
Hi @martinkr! We didn't test the task yet, so I can't yet confirm whether this issue is fixed. |
I'm using your package with Next.js 14 pages router. We're using next ex
I'm using latest version of your package for pages router.
Since some time I've been getting some errors on sentry.
null is not an object (evaluating 'window.localStorage.getItem')
I would love to have your support in fixing this issue.
The text was updated successfully, but these errors were encountered: