Next build stalls at Checking validity of types...
See original GitHub issueWhat version of Next.js are you using?
12.0.7
What version of Node.js are you using?
16.3.0
What browser are you using?
chrome
What operating system are you using?
macOS monterey
How are you deploying your application?
vercel
Describe the Bug
next build
stalls indefinitely at info - Checking validity of types .
Expected Behavior
It shouldn’t stall, or at least give an error / exception
To Reproduce
clone https://github.com/cjroebuck/next-build-stalled
npm i
npm run build
observe that terminal locks up at
info - Checking validity of types ...
In order to get the build to pass, comment out this line
This I believe is the offending file / method call:
https://github.com/cjroebuck/next-build-stalled/blob/main/src/lib/docs/remark-paragraph-alerts.ts#L27
By renaming the file to something else i.e. remark-paragraph-alerts.ts.notused, to remove it from the ts build, the build will not stall…
I assume it is an issue with the types for the unist-util-visit module, so will raise an issue over their too pointing back here.
It is strange that next build stalls, however running tsc
in the directory does seem to work ok.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (6 by maintainers)
Top GitHub Comments
Seems to be reported here already: https://github.com/microsoft/TypeScript/issues/46900
@balazsorban44 Yep I came across that issue when looking for similar issues, that’s why I made sure tsc was not having any issues before posting 😊