Hello Render Community,
I’ve encountered a persistent issue when deploying my React application with a web service. The deployment process consistently fails, returning the following error message: /bin/sh: 1: react-scripts: not found
. Interestingly, this problem does not occur when I deploy the app as a static site, which leads me to believe that the issue lies within the web services workflow.
Here’s the package.json
for reference:
{
"name": "expense-tracker-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.19",
"@mui/material": "^5.14.20",
"@reduxjs/toolkit": "^2.0.1",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"react": "^18.2.0",
"react-cookie": "^6.1.1",
"react-dom": "^18.2.0",
"react-redux": "^9.0.2",
"react-router-dom": "^6.20.1",
"react-scripts": "5.0.1",
"react-toastify": "^9.1.3",
"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"
]
},
"proxy": "https://expense-tracker-api-k3sr.onrender.com/api/v1"
}