🐞 Bug Description
The backend fails to build with TypeScript error TS6059 because tsconfig.json sets rootDir to src, but source files are located in routes/, models/, and middleware directories outside src.
📍 Steps to Reproduce
- cd backend
- npm install
- npm run build
❌ Actual Behavior
TypeScript throws multiple TS6059 errors indicating files are outside the configured rootDir.
✅ Expected Behavior
Backend should compile successfully, or project structure / tsconfig should be aligned.
📸 Screenshots
🖥️ Device & Environment
- OS: Windows
- Browser: Chrome
- Branch: main
💡 Possible fixes:
- Move routes/models/middleware inside
src/, or
- Update
tsconfig.json rootDir / include configuration
This would also align the README instructions (npm start), which are currently non-functional.
🐞 Bug Description
The backend fails to build with TypeScript error TS6059 because
tsconfig.jsonsetsrootDirtosrc, but source files are located inroutes/,models/, andmiddlewaredirectories outsidesrc.📍 Steps to Reproduce
❌ Actual Behavior
TypeScript throws multiple TS6059 errors indicating files are outside the configured
rootDir.✅ Expected Behavior
Backend should compile successfully, or project structure / tsconfig should be aligned.
📸 Screenshots
🖥️ Device & Environment
💡 Possible fixes:
src/, ortsconfig.jsonrootDir/includeconfigurationThis would also align the README instructions (npm start), which are currently non-functional.