Why next build stuck on "Checking validity of types..."? (TypeScript) #403
-
I try to migrate my project from JavaScript to TypeScript. When I deploy on Vercel or build on local. And stuck on "Checking validity of types...". ➜ npm run build
> tailwind-nextjs-starter-blog@1.5.1 build
> next build && node ./scripts/generate-sitemap
info - Checking validity of types .. And I try to clone the branch "typescript" of this repository. And also fail to build. I deploy on vercel for one hour. Then get build failed. Vercel log:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I just tried out a fresh clone of the typescript branch without issues. It's probably some typing issue if you are stuck on a Try upgrading typescript to |
Beta Was this translation helpful? Give feedback.
I just tried out a fresh clone of the typescript branch without issues. It's probably some typing issue if you are stuck on a
info - Checking validity of types...
message. You are also using prisma and have other code so it is hard to debug the cause.Try upgrading typescript to
^4.6.1-rc
if you are not on it. Otherwise, you would probably have to slowly remove parts of the code until you can find which parts cause the program to be stuck.