You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created an application: npx create-react-app my_app
installed: npm install react-router-dom
connected modules:
import {
createBrowserRouter,
RouterProvider,
} from "react-router-dom";
start application: npm start
Expected Behavior
I expect the application to work.
Actual Behavior
I get the following:
Failed to compile.
Error in ./~/react-router-dom/dist/umd/react-router-dom.development.js
Module parse failed: /....../roureact/node_modules/react-router-dom/dist/umd/react-router-dom.development.js Unexpected token (565:79)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (565:79)
@ ./~/react-router-dom/dist/main.js 18:19-67
also after installing react-router-dom I got the following:
added 3 packages, and audited 988 packages in 5s
42 packages are looking for funding
run `npm fund` for details
107 vulnerabilities (7 low, 52 moderate, 30 high, 18 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
What version of React Router are you using?
6.22.3
Steps to Reproduce
Created an application:
npx create-react-app my_app
installed:
npm install react-router-dom
connected modules:
start application:
npm start
Expected Behavior
I expect the application to work.
Actual Behavior
I get the following:
also after installing react-router-dom I got the following:
package.json
The text was updated successfully, but these errors were encountered: