No such file or directory, open '/opt/render/project/src/frontend/package.json'

Why is it showing this Error: no such file or directory, open '/opt/render/project/src/frontend/package.json ?

My package.json file is:
{
“name”: “frontend”,
“private”: true,
“version”: “0.0.0”,
“type”: “module”,
“scripts”: {
“dev”: “vite”,
“build”: “vite build”,
“lint”: “eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0”,
“preview”: “vite preview”
},
“dependencies”: {
“chat-app”: “file:…”,
“react”: “^18.2.0”,
“react-dom”: “^18.2.0”,
“react-hot-toast”: “^2.4.1”,
“react-icons”: “^5.0.1”,
“react-router-dom”: “^6.22.3”,
“socket.io-client”: “^4.7.5”,
“zustand”: “^4.5.2”
},
“devDependencies”: {
“@types/react”: “^18.2.43”,
“@types/react-dom”: “^18.2.17”,
“@vitejs/plugin-react”: “^4.2.1”,
“autoprefixer”: “^10.4.18”,
“daisyui”: “^4.7.3”,
“eslint”: “^8.55.0”,
“eslint-plugin-react”: “^7.33.2”,
“eslint-plugin-react-hooks”: “^4.6.0”,
“eslint-plugin-react-refresh”: “^0.4.5”,
“postcss”: “^8.4.35”,
“tailwindcss”: “^3.4.1”,
“vite”: “^5.0.8”
}
}

Hey,

We’re using Linux servers and Linux is case-sensitive, does the path the server is looking for match the path this package.json is in?

Jérémy.
Render Support, UTC+3

Thank you, it worked

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.