-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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]: Upgrading from 6.4.3 to 6.4.4 breaks our application #10218
Comments
This is most likely caused by #9682, though that is a valid fix. Instead, we probably need to check for |
Would you be able to provide more information on the specific URL that's throwing this error by either adding a debugger or a logpoint? Presumably the error is coming from this line so knowing what |
I'm going to close this out as stale, but please re-open with a reproduction if this is still an issue |
Sorry for the long delay in replying here again. This is what I get if I log the document.URL or window.location.href:
I'm sorry I can't create a reproduction as it just happens when running inside Figma(as it's a Figma extension) EDIT: This time after switching from HashRouter to MemoryRouter our application is working fine. So we're moving ahead with MemoryRouter |
What version of React Router are you using?
6.4.4
Steps to Reproduce
We have a Figma extension that runs inside an iframe and using version 6.4.3 or lower it works just fine. But as soon we update to 6.4.4 or higher it doesn't work anymore.
If we switch from
<HashRouter>
to<MemoryRouter>
the error is not thrown, but the router simply doesn't work. We modified the Routes path accordingly to the documentation and it still doesn't work.We didn't expect a minor version upgrade to break our application, and we haven't found a way around this error so far, so any help will be very much appreciated!
Expected Behavior
updating from 6.4.3 to 6.4.4 or higher version should work fine as it's not a breaking change
Actual Behavior
Everything works fine on version 6.4.3 - but as soon as we update to 6.4.4 or higher we start to see this error message:
The text was updated successfully, but these errors were encountered: