No matching exports
I got this error when running the project after accidently deleting yarn.lock and initializing yarn again
✘ [ERROR] No matching export in "node_modules/@refinedev/react-router-v6/node_modules/react-router-dom/node_modules/@remix-run/router/dist/router.js" for import "UNSAFE_getResolveToMatches"
node_modules/@refinedev/react-router-v6/node_modules/react-router-dom/node_modules/react-router/dist/index.js:12:49:
12 │ import { UNSAFE_invariant, joinPaths, matchPath, UNSAFE_getResolveToMatches, UNSAFE_warning, resolveTo, parsePath, matchRoutes, Action, UNSAFE_conve...
╵~~~~~~
There are a lot more but the path is the same
✘ [ERROR] No matching export in "node_modules/@refinedev/react-router-v6/node_modules/react-router-dom/node_modules/@remix-run/router/dist/router.js" for import "UNSAFE_getResolveToMatches"
node_modules/@refinedev/react-router-v6/node_modules/react-router-dom/node_modules/react-router/dist/index.js:12:49:
12 │ import { UNSAFE_invariant, joinPaths, matchPath, UNSAFE_getResolveToMatches, UNSAFE_warning, resolveTo, parsePath, matchRoutes, Action, UNSAFE_conve...
╵
There are a lot more but the path is the same
