1. If the version of react router is 4, uninstall 4 and replace it with 3
NPM uninstall react router uninstall 4
npm install react- router@3 Installation 3
2. Here, you should also report an error if you import a JS file that is not a route. The JS file that you want to import a route