react-router-typesafe icon indicating copy to clipboard operation
react-router-typesafe copied to clipboard

React Router v7 Compatibility

Open jacquesg opened this issue 1 year ago • 0 comments

React Router v7 has deprecated defer: https://reactrouter.com/upgrading/v6#deprecations

I suspect its not exported from the usual place as before.

x Build failed in 8.79s                                                                                                                                                                         
error during build:                                                                                                                                                                             
[vite-plugin-pwa:build] node_modules/react-router-typesafe/dist/index.mjs (2:9): "defer" is not exported by "node_modules/react-router-dom/dist/index.mjs", imported by "node_modules/react-rout
er-typesafe/dist/index.mjs".                                                                                                                                                                    
file: /Users/jacquesg/dev/projects/asterias/antaeus/node_modules/react-router-typesafe/dist/index.mjs:2:9                                                                                       
                                                                                                                                                                                                
1: // src/defer.ts                                                                                                                                                                              
2: import { defer as rrDefer } from "react-router-dom"; 

jacquesg avatar Dec 06 '24 21:12 jacquesg