Fix TypeScript build errors

This commit is contained in:
defiQUG
2026-01-02 20:27:42 -08:00
parent 849e6a8357
commit d4fb8e77cb
295 changed files with 18595 additions and 1391 deletions

57
QUICK_FIX.md Normal file
View File

@@ -0,0 +1,57 @@
# Quick Frontend Fix
## 🚀 Run This Command on Your Proxmox Host
```bash
pct exec 10130 -- bash -c "cd /opt/dbis-core/frontend && npm install && npm run build && systemctl restart nginx"
```
## ✅ What This Does
1. Installs all npm dependencies
2. Builds the frontend application (creates `dist/` folder)
3. Restarts nginx to serve the new build
## 🔍 Verify It Worked
```bash
# Check if build was created
pct exec 10130 -- test -f /opt/dbis-core/frontend/dist/index.html && echo "✅ SUCCESS" || echo "❌ FAILED"
# Check nginx status
pct exec 10130 -- systemctl status nginx
```
## 🌐 Then
1. **Clear browser cache** (Ctrl+Shift+R)
2. **Refresh the page** at http://192.168.11.130
3. **You should see the React app**, not the placeholder message
---
## 📝 Alternative: Use the Script
If you prefer using a script:
```bash
cd /home/intlc/projects/proxmox/dbis_core
./scripts/fix-frontend.sh
```
---
## ❌ If It Still Doesn't Work
Check for errors:
```bash
# Check build errors
pct exec 10130 -- bash -c "cd /opt/dbis-core/frontend && npm run build 2>&1 | tail -30"
# Check nginx errors
pct exec 10130 -- tail -50 /var/log/nginx/error.log
# Check if directory exists
pct exec 10130 -- ls -la /opt/dbis-core/frontend/
```