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
import{UILink}from"@template/ui";import{Link}from"react-router-dom";exportconstHomePage=()=>{return(<div><h1>Home</h1><UILink/>{/*<Link to='/other'>Go to other Link</Link>*/}</div>);};
You likely have two copies of React Router included in your projects. This isn't a bug in React Router, but indicates a problem with your monorepo/build setup.
What version of React Router are you using?
6.3.0
Steps to Reproduce
Open the command line and run the following commands
The React application should open on port 3000
Expected Behavior
Both links, the one defined in the UI-Libary and the direct link in the example app should work.
HomePage in apps/example/src/app/pages/home.tsx
UILink in libs/ui/src/index.tsx
Actual Behavior
Only the direct Link works. The Link that is used in the external libary throws the following errors:
That is in my opinion a wrong behaviour as it should just render the link as normal.
The text was updated successfully, but these errors were encountered: