You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created an application in codesandbox with our components library which contains wrapper of all the standard components like Link. Link component of react-router-dom v6 is breaking the application, getting the below error in console.
It looks like you have inlined all of React Router into your component library file, which is where the duplicate contexts are coming from. In componentsLibrary/index.esm.jsx, these chunks of code should not be inlined and should come from a react-router-dom import:
What version of React Router are you using?
6
Steps to Reproduce
Hi Team,
This issue is in continuation to #11162
I have created an application in codesandbox with our components library which contains wrapper of all the standard components like Link. Link component of react-router-dom v6 is breaking the application, getting the below error in console.
To reproduce issue, see below URL.
codesandbox URL: https://codesandbox.io/p/devbox/tsc8ph?file=%2Fpackage.json%3A26%2C27
Expected Behavior
Link component from React-router-dom v6 should work.
Actual Behavior
Link component from React-router-dom v6 is breaking application
The text was updated successfully, but these errors were encountered: