fixed build errors

This commit is contained in:
Tom Mathew
2025-10-26 16:39:33 +05:30
parent 11f2e5c630
commit cce6406433
3 changed files with 16 additions and 3 deletions

10
package-lock.json generated
View File

@@ -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",

View File

@@ -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",

View File

@@ -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<InfiniteMenuProps>;
}>
);
// ===== Demo/Fallback projects =====
const DUMMY_PROJECTS: Project[] = [
{