-
Notifications
You must be signed in to change notification settings - Fork 16
Backend build fails due to incorrect TypeScript rootDir configuration #43
Copy link
Copy link
Open
Labels
Description
🐞 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.jsonrootDir/includeconfiguration
This would also align the README instructions (npm start), which are currently non-functional.
Reactions are currently unavailable