Webpack React Router DOM build issue
I have a React+Typescript app with Webpack 5 configuration that was built from scratch. For routing I use React Router DOM 6.23.1. In development mode routing works as expected, but after I build the app components are not displayed. There are no errors in console. This happens only for components inside <Route>
. For example, If I place <Home>
component outside of <Routes>
, it will be displayed.