Summary
The backend imports ./utils/logger.js, but that file is not present in the repository. This prevents the backend app from being imported or started.
Steps to reproduce
- Clone the repository.
- Run
npm ci inside backend.
- Run:
node -e "import('./src/app.js').then(()=>console.log('ok')).catch(e=>{console.error(e.stack); process.exit(1)})"
Actual behavior
Node exits with:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../backend/src/utils/logger.js' imported from .../backend/src/app.js
Expected behavior
The backend should import successfully and start normally.
Relevant code
backend/src/app.js imports ./utils/logger.js.
backend/src/utils/envCheck.js also imports ./logger.js.
- No
backend/src/utils/logger.js file is tracked.
Summary
The backend imports
./utils/logger.js, but that file is not present in the repository. This prevents the backend app from being imported or started.Steps to reproduce
npm ciinsidebackend.node -e "import('./src/app.js').then(()=>console.log('ok')).catch(e=>{console.error(e.stack); process.exit(1)})"Actual behavior
Node exits with:
Expected behavior
The backend should import successfully and start normally.
Relevant code
backend/src/app.jsimports./utils/logger.js.backend/src/utils/envCheck.jsalso imports./logger.js.backend/src/utils/logger.jsfile is tracked.