Getting Error n.stateNode.parentNode is null TypeError only in Firefox Browser #66752
Unanswered
kpegt
asked this question in
Show and tell
Replies: 1 comment 11 replies
-
Could it be because of a browser extension in your FF? Have you tried incognito mode? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I'm encountering a n.stateNode.parentNode is null TypeError in production after deployment. Running/serving the production build locally on my machine works fine in Firefox without any errors, and it also works fine with other browsers. The root page loads without any issues, but when we try to navigate to other pages using Next.js Link, this error occurs, displaying: "Application error: a client-side exception has occurred (see the browser console for more information)." However, if we reload the page, it loads as expected.
Additionally, I'm getting another error when using the GlobalError reset() method. This error is: t.parallelRoutes is null.
Below are the versions of Next.js, React, and React DOM we are using:
"next": "^14.2.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
This is a contentful driven website built with next js App router Architecture. We are having a cache all slug in the root directory , so except the root/landing page / , all other slugs are handled in cache all route.
Here are more details regarding the error. I have replaced the original URL with a dummy one: All of the screenshots are from dev environment.
this is the landing page and its works fine

clicking on the any links or redirection happens, it is throwing the following error

And if I click on the try again (GlobalError reset() method), it throwing another error

In other browsers, including Edge, it is working seamlessly without any issues.
Thanks in advance :)
Beta Was this translation helpful? Give feedback.
All reactions