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

notFound() causes "Uncaught NotFoundError: Failed to execute 'removeChild' on 'Node' #1714

Open
3 tasks done
Tockra opened this issue Feb 13, 2025 · 3 comments
Open
3 tasks done
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@Tockra
Copy link

Tockra commented Feb 13, 2025

Description

You can try this example project (https://github.com/Tockra/nextjs-test-playground) and visit a unknown locale path. E.g. localhost:3000/fr
This causes a error in console and does not show the notFound page.
Is this a configuration issue or a bug in next-intl?

Console error:

Verifications

Mandatory reproduction URL

https://github.com/Tockra/nextjs-test-playground

Reproduction description

Steps to reproduce:

  1. Open reproduction
  2. Open a link with an unknown locale
  3. See error:
Uncaught NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
    at removeChildFromContainer (react-dom-client.development.js:19098:21)
    at runWithFiberInDEV (react-dom-client.development.js:543:16)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11705:17)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11818:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11818:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11791:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11775:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11775:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11775:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11791:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11775:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11775:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11818:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11775:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11818:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11791:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11775:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11791:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11775:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11775:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11791:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11775:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11818:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11818:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11818:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)
    at commitDeletionEffectsOnFiber (react-dom-client.development.js:11818:11)
    at recursivelyTraverseDeletionEffects (react-dom-client.development.js:11629:9)

Expected behaviour

No error

@Tockra Tockra added bug Something isn't working unconfirmed Needs triage. labels Feb 13, 2025
@amannn
Copy link
Owner

amannn commented Feb 14, 2025

Can you try to compare your solution against a working example and also consult the error files docs? Maybe that helps to find an issue in your setup.

@Tockra
Copy link
Author

Tockra commented Feb 14, 2025

The biggest difference is that I used Next.js 15.

I’m currently on my smartphone, but in the evening, I’ll be back on my computer and can update the example code (provided by you) to Next.js 15.

@amannn
Copy link
Owner

amannn commented Feb 14, 2025

Sure, you can also find the examples updated to Next.js 15 in this branch/PR: #1089

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants