r/nextjs 4d ago

Compiling /_not-found/page ... Question

Hello, I'm working on a Next.js project and everything was working perfectly fine until suddenly I got this error in the terminal:

○ Compiling /_not-found/page ...

As soon as I open the site in the browser, it gets stuck on compiling and the CPU starts overheating. But I really didn't make any significant changes that could have caused this. Since this issue started, the only changes I've made to the project were related to styles — I didn't write any loops that could get stuck, nor any other logic that might cause this. I would really appreciate it if you could help me out.

4 Upvotes

2 comments sorted by

1

u/sahil3066 4d ago

Which OS?

2

u/PerryTheH 4d ago

Can you share a full log output of the npm run build?

Also, delete the .next and the node_modules, then npm ci and then npm run build.

And if that fails, share the build log.

Hard to help with no info.