next build
fails without throwing any reasonable errors. Local build finishes successfully
Node: 20 / 22
NextJS: 15.1.6
Unlike this stackoverflow reference build script was always set to next build in ours project
Node version switch from 22 to 20 and vice versa
strict: false
typescript: { ignoreBuildErrors: true }
eslint: { ignoreDuringBuilds: true }
[16:26:21.131] Running build in Washington, D.C., USA (East) – iad1
[16:26:21.268] Cloning <PROJECT_NAME> (Branch: develop, Commit: e256631)
[16:26:22.260] Previous build caches not available
[16:26:22.296] Cloning completed: 1.030s
[16:26:22.607] Running "vercel build"
[16:26:22.989] Vercel CLI 40.1.0
[16:26:23.397] Installing dependencies...
[16:26:40.207]
[16:26:40.208] added 504 packages in 17s
[16:26:40.209]
[16:26:40.209] 161 packages are looking for funding
[16:26:40.209] run `npm fund` for details
[16:26:40.227] Detected Next.js version: 15.1.6
[16:26:40.256] Running "npm run build"
[16:26:40.410]
[16:26:40.410] > <PROJECT_NAME>@0.1.0 build
[16:26:40.411] > next build
[16:26:40.411]
[16:26:41.138] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[16:26:41.139] This information is used to shape Next.js' roadmap and prioritize features.
[16:26:41.139] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[16:26:41.139] https://nextjs.org/telemetry
[16:26:41.139]
[16:26:41.192] â–² Next.js 15.1.6
[16:26:41.193]
[16:26:41.268] Creating an optimized production build ...
[16:27:14.871] ✓ Compiled successfully
[16:27:14.877] Linting and checking validity of types ...
[16:27:15.009] Error: Command "npm run build" exited with 1
[16:27:15.325]
/* package.json */
{
"name": "<PROJECT_NAME>",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@apollo/client": "^3.12.9",
"@hookform/resolvers": "^3.10.0",
"@radix-ui/react-checkbox": "^1.1.3",
"@radix-ui/react-collapsible": "^1.1.2",
"@radix-ui/react-dialog": "^1.1.5",
"@radix-ui/react-dropdown-menu": "^2.1.5",
"@radix-ui/react-hover-card": "^1.1.5",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.1",
"@radix-ui/react-popover": "^1.1.5",
"@radix-ui/react-scroll-area": "^1.2.2",
"@radix-ui/react-select": "^2.1.5",
"@radix-ui/react-separator": "^1.1.1",
"@radix-ui/react-slot": "^1.1.1",
"@radix-ui/react-toggle": "^1.1.1",
"@radix-ui/react-toggle-group": "^1.1.1",
"@radix-ui/react-tooltip": "^1.1.7",
"@tanstack/react-table": "^8.20.6",
"@types/lodash": "^4.17.15",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.0.4",
"date-fns": "^3.6.0",
"graphql": "^16.10.0",
"jwt-decode": "^4.0.0",
"lodash": "^4.17.21",
"lucide-react": "^0.474.0",
"next": "15.1.6",
"next-themes": "^0.4.4",
"react": "19.0.0",
"react-day-picker": "^8.10.1",
"react-dom": "19.0.0",
"react-hook-form": "^7.54.2",
"react-pdf": "^9.2.1",
"sonner": "^1.7.4",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.24.1",
"zustand": "^5.0.3"
},
"devDependencies": {
"@types/node": "^22",
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"eslint": "^9",
"eslint-config-next": "15.1.6",
"postcss": "^8",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3"
},
"overrides": {
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"react-day-picker": {
"react": "19.0.0"
}
}
}
/* next.config.mjs */
/** @type {import('next').NextConfig} */
const nextConfig = {
};
export default nextConfig;
/* tsconfig.json */
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
},
"target": "ES2017"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
3 posts - 1 participant