Skip to content

React Router v7 CompatibilityΒ #19

@jacquesg

Description

@jacquesg

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"; 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions