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]: No route matches URL in production build #11484

Closed
harryzcy opened this issue Apr 22, 2024 · 3 comments
Closed

[Bug]: No route matches URL in production build #11484

harryzcy opened this issue Apr 22, 2024 · 3 comments
Labels

Comments

@harryzcy
Copy link

What version of React Router are you using?

v6.22.3

Steps to Reproduce

I haven't found the exact reason for this. I'm using Vite v5.2.10. The error starts to occur when rollup is updated from v4.14.2 to v4.16.1.

Expected Behavior

The router should work fine.

Actual Behavior

image
@harryzcy
Copy link
Author

Even redirect is not working.

Might be a bug in rollup and is unrelated to react-router. Possibly related: rollup/rollup#5484?

@sparecycles
Copy link

Might be! 4.14.2 does not exhibit this issue!

image

https://rollupjs.org/repl/?version=4.14.2&shareable=JTdCJTI...

@harryzcy
Copy link
Author

My case is fixed with rollup 4.16.2. rollup/rollup#5484 is a different issue.
Related: #11480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants