package.json:
{
"name": "frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@react-three/fiber": "^8.17.14",
"framer-motion": "^12.0.6",
"next": "15.1.6",
"next-themes": "^0.4.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"three": "^0.173.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@types/node": "^20.17.16",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@types/three": "^0.173.0",
"eslint": "^9",
"eslint-config-next": "15.1.6",
"postcss": "^8",
"tailwindcss": "^3.4.17",
"typescript": "^5"
}
}
next.config.ts
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
transpilePackages: ['three']
};
export default nextConfig;
Getting this error:

I tried running the dev server with using both turbopack and webpack
package.json:
next.config.ts
Getting this error:

I tried running the dev server with using both turbopack and webpack