vercel / next.js

The React Framework
https://nextjs.org
MIT License
127.24k stars 27.02k forks source link

Docs: Page not jumping properly after google translate #70742

Open RainbowXXX opened 1 month ago

RainbowXXX commented 1 month ago

What is the documentation issue?

I used google translate in the page and then after clicking on the link in Next Steps, I was redirected to the error page like this: image

Is there any context that might help us understand?

The error msg in browser console:

NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at oI (1fe503da-8c7958a59066e455.js:1:86225)
    at o1 (1fe503da-8c7958a59066e455.js:1:95781)
    at o0 (1fe503da-8c7958a59066e455.js:1:92825)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:90403)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:90403)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:90403)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:90403)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:90403)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:90403)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:93584)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:90403)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)
    at o0 (1fe503da-8c7958a59066e455.js:1:92817)
    at oZ (1fe503da-8c7958a59066e455.js:1:90281)

Browser: Chrome Chrome version: 129.0.6668.72

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/building-your-application/routing/defining-routes

samcx commented 1 month ago

@RainbowXXX Can you be more specific with your steps so we can try to replicate the issue (e.g., what language from and to did you translate)?

ElectricCodeGuy commented 1 month ago

Check your nested layout.tsx and add fragments <> </>