Open ats1999 opened 9 months ago
Why i can’t see any error on the terminal? Is there any infinite loop?
@jw-vercel any update
i face this issue, my nextjs app stuck in
Linting and checking validity of types ...
and stuck around 45m in vercel then return error build with no reason
nextjs 14, pages dir
Same here, either running lint or build stucks, ctrl+c not working, need to send SIGKILL to stop it
I'm using https://github.com/ixartz/Next-js-Boilerplate as a starter, but seems it's not the issue for this problem
Trying to find the reason, so far it seems it's not nextjs issue, but eslint issue. Code goes inside eslint module, and getting stuck there, not returning back.
So, there's eslint/lib/cli-engine
, which has function verifyText
In my case it's getting stuck on /storybook-static/350.67e726ff.iframe.bundle.js
file, not yet sure why.
I'm not sure where that linter.verifyAndFix
coming from and don't really care, adding storybook-static
to .eslintignore
solved this problem for me. Try adding some console.logs
to that file and check what's blocking it on your side and maybe ignore it too, if it's some file that don't need linting.
btw, ats1999 in your case I can't replicate the problem anymore, it builds with an error for me
Facing the same issue. But it works occasionally. First time fixed it by naming all the page function names as Page().
Faced same issue, I push my code and deploy it on vercel, my build was successfull after 1 hour
Link to the code that reproduces this issue
https://github.com/ats1999/nextjs-14-build-hangs
To Reproduce
You'll get to see that nextjs build will hang forever.
Current vs. Expected behavior
Currently, i am expecting that it should build nextjs but it is hanging forever.
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
The build is hanging with the next 14.0.2 and upper versions but it's working fine with 13.x.x.
I haven’t checked all versions, but the above two versions have been checked.
The build is hanging on the local machine as well as vercel deployment
Although, npm run dev is working fine.
You can just remove
<Editor id="editor" />
fromapp/page.tsx
and the build will work fine.Why is this happening? This is not happening while local development, but occurs only when i am running
npm run build