neohan666 / react-router-waiter

react-router v6 路由统一管理及路由拦截方案
MIT License
56 stars 7 forks source link

reacr-router-dom v6版本的,使用这个库出现呢这个异常,请问一下是什么原因导致的 #3

Open gitrunfeng opened 2 years ago

gitrunfeng commented 2 years ago

The above error occurred in one of your React components: in Unknown (created by d) in Suspense (created by d) in i (created by d) in d (at App.tsx:36) in Router (created by BrowserRouter) in BrowserRouter (at App.tsx:35) in div (at App.tsx:34) in App (at src/index.tsx:12) in QueryClientProvider (at AppProvider.tsx:76) in AppProvider (at src/index.tsx:11)

Consider adding an error boundary to your tree to customize error handling behavior. Visit https://fb.me/react-error-boundaries to learn more about error boundaries.

neohan666 commented 2 years ago

你这,报错信息没贴上来啊,The above error

gitrunfeng commented 2 years ago

image

neohan666 commented 2 years ago

报错信息不明确,看看是不是组件懒加载的引入方式问题

neohan666 commented 2 years ago

4