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

[Bug]: <Navigate to=... breaks after 6.14.2 #11375

Closed
lessp opened this issue Mar 26, 2024 · 2 comments
Closed

[Bug]: <Navigate to=... breaks after 6.14.2 #11375

lessp opened this issue Mar 26, 2024 · 2 comments

Comments

@lessp
Copy link

lessp commented Mar 26, 2024

What version of React Router are you using?

6.15.0

Steps to Reproduce

We have the following code (which itself may be incorrect), however, this throws Uncaught (in promise) ReferenceError: AwaitRenderStatus is not defined for versions post 6.14.2.

createBrowserRouter(
  createRoutesFromElements(
    <Route path="/" element={...}>
      <Route path="*" element={...} />
      <Route path="/foo" element={<Navigate to="/bar" />} />
    </Route>,
  ),
);

Expected Behavior

Depending on if we're using this correctly, I'd expect it to navigate to bar without throwing.

Actual Behavior

Throws Uncaught (in promise) ReferenceError: AwaitRenderStatus is not defined

@lessp lessp added the bug label Mar 26, 2024
@brophdawg11
Copy link
Contributor

Could you provide a minimal reproduction of the bug?

It sounds like you may have some mismatched versions - that private internal variable exists in 6.15.0 here. Maybe try an npm ls react-router-dom and see if you need to dedupe?

@lessp
Copy link
Author

lessp commented Mar 27, 2024

Hey @brophdawg11, thanks for the response!

Actually, that sounds rather plausible. It seems like we only hit this when running the deployed version. Let me close this and re-open if I can come up with a minimal reproducible example.

@lessp lessp closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants