From cce6406433b6ff21b19a40f42991c0dbca5d0bde Mon Sep 17 00:00:00 2001 From: Tom Mathew Date: Sun, 26 Oct 2025 16:39:33 +0530 Subject: [PATCH] fixed build errors --- package-lock.json | 10 ++++++++++ package.json | 1 + src/app/projects/page.tsx | 8 +++++--- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 181d87d..90edb56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "ml4e", "version": "0.1.0", "dependencies": { + "@fontsource-variable/orbitron": "^5.2.8", "@react-three/drei": "^10.7.6", "@react-three/fiber": "^9.3.0", "@react-three/postprocessing": "^3.0.4", @@ -240,6 +241,15 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/@fontsource-variable/orbitron": { + "version": "5.2.8", + "resolved": "https://registry.npmjs.org/@fontsource-variable/orbitron/-/orbitron-5.2.8.tgz", + "integrity": "sha512-Jazvuj2cgBq663z1j/+JdwH2ztqQ8RaGhJgdHYphFbtfowiFaR74R8UgZl7x1skbXmUMWWH1jXfG7mrYFIYK0A==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, "node_modules/@humanfs/core": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", diff --git a/package.json b/package.json index 9854dd9..a798551 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "lint": "eslint" }, "dependencies": { + "@fontsource-variable/orbitron": "^5.2.8", "@react-three/drei": "^10.7.6", "@react-three/fiber": "^9.3.0", "@react-three/postprocessing": "^3.0.4", diff --git a/src/app/projects/page.tsx b/src/app/projects/page.tsx index 1345a7a..8a10c1c 100644 --- a/src/app/projects/page.tsx +++ b/src/app/projects/page.tsx @@ -28,10 +28,12 @@ type InfiniteMenuProps = { }; // Lazy import keeps this page client-only -const InfiniteMenu = React.lazy( - () => import("@/app/components/InfiniteMenu/InfiniteMenu") -); +const InfiniteMenu = React.lazy(() => + import("@/app/components/InfiniteMenu/InfiniteMenu") as Promise<{ + default: React.ComponentType; + }> +); // ===== Demo/Fallback projects ===== const DUMMY_PROJECTS: Project[] = [ {