The error message "Module not found: Can't resolve 'react-router-dom'" would show up when the project does not have the package 'react-router-dom' as dependencies in your package.json file or whatever the equivalent you use to manage the dependencies in your project
that could be solve as typing the following line in terminal, at your project directory
(if using yarn, do yarn install react-router-dom)
댓글
댓글 쓰기