When I launch my app on Vercel, I am facing this issue consistently for the last day with fail --
It looks like you're trying to use TypeScript but do not have the required package(s) installed. Please install @types/node by running: npm install --save-dev @types/node If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files in your app and pages directories). Next.js build worker exited with code: 1 and signal: null Error: Command "npm run build" exited with 1
I have done everything known to mankind - clearing cache, uninstall node modules then reinstalling, downgrading typescript version, types/node, types/react, etc, the dependencies are there. I heard people talking about NODE_ENV but I dont have that so all should work but still, the issue persists. My Json and config file is below for reference.
{
"name": "euphoniczen",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev --turbopack",
"build": "prisma generate && next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@auth/prisma-adapter": "^2.8.0",
"@base-ui-components/react": "^1.0.0-alpha.8",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.11",
"@mui/material": "^6.4.8",
"@mui/styled-engine-sc": "^6.4.6",
"@paddle/paddle-js": "^1.4.0",
"@paddle/paddle-node-sdk": "^2.7.0",
"@paypal/paypal-server-sdk": "^1.0.0",
"@paypal/react-paypal-js": "^8.8.3",
"@prisma/client": "^6.6.0",
"axios": "^1.8.4",
"bootstrap-icons": "^1.11.3",
"date-fns": "^4.1.0",
"dompurify": "^3.2.5",
"dotenv": "^8.2.0",
"flowbite-react": "^0.11.7",
"gsap": "^3.12.7",
"lodash": "^4.17.21",
"lucide-react": "^0.509.0",
"micro": "^10.0.1",
"motion": "^12.5.0",
"next": "15.2.3",
"next-auth": "^5.0.0-beta.25",
"polished": "^4.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-spinners-kit": "^1.9.1",
"styled-components": "^6.1.16",
"zod": "^3.24.3"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"@types/node": "^20.17.46",
"@types/react": "^19.1.4",
"@types/react-dom": "^19.1.5",
"autoprefixer": "^10.4.21",
"eslint": "^9",
"eslint-config-next": "15.2.3",
"postcss": "^8.5.3",
"prisma": "^6.6.0",
"tailwindcss": "^4.0.15",
"typescript": "^5.8.3"
}
}
and my typescript config file
{
"compilerOptions": {
"target": "ES2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"module": "esnext",
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"plugins": [
{
"name": "next"
}
]
},
"include": [
"next-env.d.ts",
".next/types/**/*.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
I laucnhed it on Vercel and encountering issues of types/etc