Closed anilanar closed 1 year ago
Workaround:
import { route } from "typesafe-routes/build/route";
import { intParser } from "typesafe-routes//build/parser";
thanks for reporting, I'll take a look.
I suggest
react-router
related dependencies are not re-exported fromindex.ts
. So users that want to usereact-router
utilities can import it astypesafe-routes/react-router
instead.
Yep that's exactly how it's implemented now in the latest update. Thanks again.
index.ts
re-exportsreact-router.ts
, which depends onreact
andreact-router-dom
. So if a project doesn't have those dependencies, then it's impossible to usetypesafe-routes
.I suggest
react-router
related dependencies are not re-exported fromindex.ts
. So users that want to usereact-router
utilities can import it astypesafe-routes/react-router
instead.