title: Compiled with problems:X ERROR in ./src/route/AppRoute.js 12:37-43 export 'Switch' (imported as 'Switch') was not found in 'react-router'
body: <blockquote>
  <p>Compiled with problems:X
  ERROR in ./src/route/AppRoute.js 12:37-43
  export 'Switch' (imported as 'Switch') was not found in 'react-router' (possible exports: MemoryRouter, Navigate, Outlet, Route, Router, Routes, UNSAFE_LocationContext, UNSAFE_NavigationContext, UNSAFE_RouteContext, createRoutesFromChildren, generatePath, matchPath, matchRoutes, renderMatches, resolvePath, useHref, useInRouterContext, useLocation, useMatch, useNavigate, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes)</p>
  </blockquote>
  <p>My source code for using React:</p>
  <p><a href="https://i.stack.imgur.com/Qu3UO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qu3UO.png" alt="enter image description here" /></a></p>
  <p>In the command line the error shows up like so:</p>
  <p><a href="https://i.stack.imgur.com/sgsWm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sgsWm.png" alt="enter image description here" /></a></p>
  <p>The items available in the folder are:</p>
  <p><a href="https://i.stack.imgur.com/8w8bE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8w8bE.png" alt="enter image description here" /></a></p>
  <p>I tried googling and used this command, but still its not working and showing the same error as I said earlier:</p>
  <p>command i tried to use but still facing the same issue:</p>
  <p><a href="https://i.stack.imgur.com/iTQsT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iTQsT.png" alt="enter image description here" /></a></p>
  <p>Can you please provide me with what to do step by step?</p>