export Switch imported as Switch was not found in react-router-dom possible exports AbortedDeferredError Await BrowserRouter Form HashRouter Link MemoryRouter NavLink Navigate NavigationType Outlet Ro
The error message indicates that the 'Switch' component could not be found in the 'react-router-dom' library. It suggests that there are other possible exports available, such as 'BrowserRouter', 'Route', and 'Link', among others. However, it does not include 'Switch' in the list of possible exports. This could be due to a version mismatch or a mistake in importing the component. Double-check the version of 'react-router-dom' being used and make sure the import statement for 'Switch' is correct.
原文地址: https://www.cveoy.top/t/topic/0oZ 著作权归作者所有。请勿转载和采集!