Skip to content

[Bug]: Upgrading from 6.4.3 to 6.4.4 breaks our application #10218

@victorcarvalhosp

Description

@victorcarvalhosp

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:

VM538:34045 Uncaught TypeError: Failed to construct 'URL': Invalid URL
    at createURL (<anonymous>:34045:10)
    at Object.encodeLocation (<anonymous>:34139:17)
    at NavLinkWithRef (<anonymous>:147921:57)
    at renderWithHooks (<anonymous>:132022:18)
    at updateForwardRef (<anonymous>:134938:20)
    at beginWork (<anonymous>:137348:16)
    at HTMLUnknownElement.callCallback (<anonymous>:119881:14)
    at HTMLUnknownElement.sentryWrapped (<anonymous>:37690:17)
    at Object.invokeGuardedCallbackDev (<anonymous>:119930:16)
    at invokeGuardedCallback (<anonymous>:119994:31)
    at beginWork$1 (<anonymous>:143163:7)
    at performUnitOfWork (<anonymous>:142272:12)
    at workLoopSync (<anonymous>:142178:5)
    at renderRootSync (<anonymous>:142146:7)
    at performConcurrentWorkOnRoot (<anonymous>:141450:74)
    at workLoop (<anonymous>:156223:34)
    at flushWork (<anonymous>:156196:14)
    at MessagePort.performWorkUntilDeadline (<anonymous>:156490:21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions