Hello out there
I am in dire need since I have to deploy this asap for my school project.
I am getting the error:
Cannot find module ‘react-router-dom’
I can see I have installed the react-router-dom under my devdependencies:
{
“name”: “client-hub-project”,
“version”: “0.1.0”,
“private”: true,
“dependencies”: {
“@headlessui/react”: “^1.7.17”,
“@heroicons/react”: “^2.0.18”,
“@testing-library/jest-dom”: “^5.17.0”,
“@testing-library/react”: “^13.4.0”,
“@testing-library/user-event”: “^13.5.0”,
“axios”: “^1.5.1”,
“react”: “^18.2.0”,
“react-dom”: “^18.2.0”,
“react-scripts”: “5.0.1”,
“web-vitals”: “^2.1.4”
},
“scripts”: {
“start”: “react-scripts start”,
“build”: “react-scripts build”,
“test”: “react-scripts test”,
“eject”: “react-scripts eject”
},
“eslintConfig”: {
“extends”: [
“react-app”,
“react-app/jest”
]
},
“browserslist”: {
“production”: [
“>0.2%”,
“not dead”,
“not op_mini all”
],
“development”: [
“last 1 chrome version”,
“last 1 firefox version”,
“last 1 safari version”
]
},
“devDependencies”: {
“react-router-dom”: “^6.21.1”,
“tailwindcss”: “^3.3.4”
}
}
And my settings looks like this:
npm ci --production=false && npm install; npm run build && npm prune --production
If you need more information or if someone knows why, I would appreciate it a lot, thanks.