I also tried running yarn add react-router-dom. It just creates a 'build' folder which holds the same files as my public folder inside my app folder. I have tried the npm build command in my app folder. My api folder holds nothing but node_modules, my api file, route.js, config.js, index.js and also a package.json and package-lock.json. Updated manually my package.json inside the app folder, reinstalled react-router-dom, delete the package-lock.json in the app folder and reinitialize it. I have an api and app folder inside my project folder. This is runned on a localhost, node server. Project has been created using the create-react-app myapp cmd line. React-router-dom has been added to the dependencies in npm and so has react-router and react. src/components/App/App.js Module not found: Can't resolve 'react-router-dom'. After npm start, the browser gives the error:įailed to compile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |