I was facing the same issue. The following command will resolve it:
npm install react-router-dom --save
Related Posts:
- Reactjs – Form input validation
- ‘react-scripts’ is not recognized as an internal or external command
- After $npm install, Getting Error: Cannot find module ‘../lib/utils/unsupported.js’
- SyntaxError: Adjacent JSX elements must be wrapped in an enclosing tag
- how to use react require syntax?
- “React.Children.only expected to receive a single React element child” error when putting
and in a - Invariant Violation: Objects are not valid as a React child
- “SyntaxError: Unexpected token < in JSON at position 0"
- How can a Discord bot create a hyperlink in a Discord message in an embed or in general? [closed]
- Babel 6 regeneratorRuntime is not defined
- React – uncaught TypeError: Cannot read property ‘setState’ of undefined
- Understanding unique keys for array children in React.js
- Difference between npx and npm?
- Client on Node.js: Uncaught ReferenceError: require is not defined
- How can a Discord bot create a hyperlink in a Discord message in an embed or in general?
- Getting a UnhandledPromiseRejectionWarning when testing using mocha/chai
- require is not defined? Node.js
- Error: Can’t set headers after they are sent to the client
- Express error – TypeError: Router.use() requires middleware function but got a Object
- What is NODE_ENV and how to use it in Express?
- TypeScript React.FC
confusion - await is only valid in async function
- Heroku: “No default language could be detected for this app” error thrown for node app
- Loop inside React JSX
- Can’t resolve module (not found) in React.js
- What does “res.render” do, and what does the html file look like?
- How to implement navbar using react
- NPM ELIFECYCLE error – using node server.js command
- Loop inside React JSX
- React this.setState is not a function
- Console logging for react?
- ReferenceError: fetch is not defined
- Node.js – SyntaxError: Unexpected token import
- In reactJS, how to copy text to clipboard?
- Invalid shorthand property initializer
- nodejs – error self signed certificate in certificate chain
- stop all instances of node.js server
- Using Node.js require vs. ES6 import/export
- Setting a backgroundImage With React Inline Styles
- How to pass props to {this.props.children}
- React eslint error missing in props validation
- npm – EPERM: operation not permitted on Windows
- How can I mock an ES6 module import using Jest?
- How to import image (.svg, .png ) in a React Component
- Uncaught TypeError: Cannot read property ‘props’ of null
- TypeError: Router.use() requires middleware function but got a Object
- How to refresh a Page using react-route Link
- SyntaxError: Cannot use import statement outside a module
- How to determine the installed webpack version
- node.js TypeError: path must be absolute or specify root to res.sendFile [failed to parse JSON]
- Console is throwing Unterminated JSX contents error
- How to handle the `onKeyPress` event in ReactJS?
- Node update a specific package
- How to properly export an ES6 class in Node 4?
- Express error – TypeError: Router.use() requires middleware function but got a Object
- MissingSchemaError: Schema hasn’t been registered for model “User”
- Convert Array to Object
- How to add multiple classes to a ReactJS Component?
- Make Axios send cookies in its requests automatically
- How do I remove documents using Node.js Mongoose?
- Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode
- node-request – Getting error “SSL23_GET_SERVER_HELLO:unknown protocol”
- module.exports “Module is not defined”
- how to download file in react js
- Trying to use fetch and pass in mode: no-cors
- Why does JSHint throw a warning if I am using const?
- React’s setState method with prevState argument
- onEnter not called in React-Router
- Uncaught TypeError: Cannot read property ‘call’ of undefined at __webpack_require__
- Async/await in componentDidMount to load in correct order
- Difference between “module.exports” and “exports” in the CommonJs Module System
- Local package.json exists, but node_modules missing
- Error: Cannot find module html
- react router v^4.0.0 Uncaught TypeError: Cannot read property ‘location’ of undefined
- Access Control Origin Header error using Axios
- TypeError: res.status is not a function
- TypeError: res.json is not a function
- Can’t perform a React state update on an unmounted component
- onClick not working React js
- How can I use webpack with express?
- This.props.dispatch not a function – React-Redux
- How to add a keyboard listener to my onClick handler?
- How to add a keyboard listener to my onClick handler?
- React router not showing browser history
- Maximum call stack size exceeded on npm install
- Jest encountered an unexpected token
- How do you completely remove Ionic and Cordova installation from mac?
- Error: listen EACCES 0.0.0.0:80 OSx Node.js
- How to sort in mongoose?
- What counts as CPU Intensive tasks (eg. sorting, searching etc?)
- Uncaught ReferenceError: React is not defined
- events.js: 141 throw er; // Unhandled ‘error’ event
- What do these three dots in React do?
- Expected ‘this’ to be used by class method
- How to disable auto-start of “Node.js: Server-side JavaScript” when using Adobe Dreamweaver?
- Update style of a component onScroll in React.js
- Correct modification of state arrays in React.js
- JSX not allowed in files with extension ‘ .js’ with eslint-config-airbnb
- Await is a reserved word error inside async function
- Is there a way to create interfaces in ES6 / Node 4?