react-router-typesafe-routes
react-router-typesafe-routes copied to clipboard
Error when bundling
Hi! I've just found this wonderful looking project and would love to use it in one of my project. However, when I bundle my project I get these errors. Any ideas?
✘ [ERROR] No matching export in "node_modules/react-router-dom/esm/react-router-dom.js" for import "useSearchParams"
node_modules/react-router-typesafe-routes/dom/useTypedSearchParams.js:12:9:
12 │ import { useSearchParams, createSearchParams } from "react-router-dom";
╵ ~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/react-router-dom/esm/react-router-dom.js" for import "createSearchParams"
node_modules/react-router-typesafe-routes/dom/useTypedSearchParams.js:12:26:
12 │ import { useSearchParams, createSearchParams } from "react-router-dom";
╵ ~~~~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/react-router-dom/esm/react-router-dom.js" for import "createSearchParams"
node_modules/react-router-typesafe-routes/dom/route.js:1:9:
1 │ import { createSearchParams, generatePath } from "react-router-dom";
╵ ~~~~~~~~~~~~~~~~~~
Please let me know if there is any more information I can provide to help debug this.