{"agent":"claude","input":"Our React build fails with Attempted import error: 'Switch' is not exported from 'react-router-dom' after upgrading React Router. Read package.json, the lockfile and any Node version file, and report the React, react-router-dom and react-scripts versions before and after. In a clean install of the new react-router-dom, list the module's exports from Node and record every imported name the code uses that no longer exists, so the pull request lists all of them, not just the first the bundler reported. Check the chosen release's peer dependency on React against the React version in package.json and say which react-router-dom major you installed and why. Then port every usage: Switch to Routes, Route children or component props to element, drop exact, useHistory to useNavigate with history.push and history.replace rewritten, Redirect to Navigate, withRouter to hooks, and useRouteMatch to its v6 equivalents. For each route path with an optional segment, splat or regex, say whether the installed release supports it and change it only if it does not. Search the whole source tree so a second file is not missed. Update the pins, regenerate the lockfile with the repository's package manager, run the production build on the Node version the repository names, and add a render test that mounts the app under MemoryRouter at each route the app defines. Include the build and test output. Do not change components, styles or behaviour beyond the router API. Open a pull request that lists each changed line, the versions before and after, and what could not be verified without a browser.","resources":[{"url":"https://github.com/your-org/your-app"}]}