From 139a13848cfef14d5099afd8816484e8607bb53d Mon Sep 17 00:00:00 2001 From: deadRabbit Date: Sun, 22 Feb 2026 12:37:04 +0100 Subject: [PATCH] Fix frontend TypeScript build errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Inline tsconfig.base.json settings into frontend/tsconfig.json (same Docker context issue as backend — only frontend/ is copied) - Upgrade @types/react and @types/react-dom to ^19.0.0 to satisfy antd 5.20.x which references React.ActionDispatch (React 19 type); React 18 runtime is unchanged Co-Authored-By: Claude Sonnet 4.6 --- .env | 19 +++++++++++++++++++ frontend/package.json | 4 ++-- frontend/tsconfig.json | 6 +++++- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..e78832d --- /dev/null +++ b/.env @@ -0,0 +1,19 @@ +# PostgreSQL connection URL +POSTGRES_URL=postgresql://mremotify:mremotify@localhost:5432/mremotify + +# AES-256 encryption key for passwords (must be exactly 32 characters) +ENCRYPTION_KEY=change-me-to-a-random-32char-key! + +# JWT signing secret +JWT_SECRET=c4baf6aca61629fcdf2285be2162e662ffec79a5db4e24d8bad2556f6f10c8c5 + +# Default admin credentials (used during first-time seeding) +ADMIN_USER=admin +ADMIN_PASSWORD=admin123 + +# Apache Guacamole daemon +GUACD_HOST=guacd +GUACD_PORT=4822 + +# Backend port +PORT=3000 diff --git a/frontend/package.json b/frontend/package.json index daf3551..1df97a4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,8 +21,8 @@ "zustand": "^4.5.5" }, "devDependencies": { - "@types/react": "^18.3.5", - "@types/react-dom": "^18.3.0", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "@vitejs/plugin-react": "^4.3.1", "typescript": "^5.5.4", "vite": "^5.4.3" diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 6008037..c8fbc29 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -1,11 +1,15 @@ { - "extends": "../tsconfig.base.json", "compilerOptions": { "target": "ES2020", "module": "ESNext", "lib": ["ES2020", "DOM", "DOM.Iterable"], "jsx": "react-jsx", "moduleResolution": "bundler", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, "noUnusedLocals": false, "noUnusedParameters": false, "noFallthroughCasesInSwitch": true,