-
Notifications
You must be signed in to change notification settings - Fork 211
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
Missing support for React Router 6 #2053
Comments
@jernej-lipovec-viaduct did you find any workarounds for this? |
We are now using Web Component version of Elements and is working well for us. |
Hey! +1 here, any news on this issue? |
any news? I am experiencing this same issue |
@chohmann was just curious on when this issue might get fixed, thanks! |
@graham-atom this is something that is on our radar, but we have no concrete dates that we can promise. |
As @jernej-lipovec-viaduct mentioned, you can use this workaround:
In my case, I am using TypeScript, so I have added this file: elements.d.ts
And I have added the file to my tsconfig.json.
|
This is needed more urgently now, as there's a known vulnerability published last week effecting Vulnerability advisory: GHSA-9wv6-86v2-598j The version of The fix for this is upgrading to v6 of react router (which was published almost 3 years ago now 😬). For orgs that are in industries sensitive to vulnerabilities (like mine), this will almost certainly mean finding an alternative to Elements, which is disappointing. |
any news? |
so I have been able to fix rendering using https://www.npmjs.com/package/react-router-dom-v5-compat and loading the component with a compat route. not ideal though, would prefer native v6 support |
This ticket has been labeled jira. A tracking ticket in Stoplight's Jira ( |
Describe the bug
When using React version of elements along with React Router 6 (currently 6.2.2)
To Reproduce
Expected behavior
I would expect app to not crash when used with React Router 6.
Additional context
This error happens when regardless of "router" parameter or whether I am using apiDescriptionUrl or apiDescriptionDocument.
Environment (remove any that are not applicable):
Error stacktrace
The text was updated successfully, but these errors were encountered: