processContextHashSnapshot(path, tsh.hash) throws error
See original GitHub issueDo you want to request a feature or report a bug? Bug
What is the current behavior?
Running npx next build
Causes the following error:
info - Creating an optimized production build . project-path\node_modules\next\dist\compiled\webpack\bundle5.js:59190 processContextHashSnapshot(path, tsh.hash);
^
TypeError: Cannot read property 'hash' of null
If the current behavior is a bug, please provide the steps to reproduce.
All I assumingly did was adding a layout and components, e.g. footer
What is the expected behavior?
Building instead of failing, or failing gracefully
Other relevant information: webpack version: 5.58.1 (that came with the next version) next: 11.1.2
Solution:
I deleted .next
to fix this. I’d run vercel --force
to skip the build cache if I was on vercel.
If a webpack dev wants to, they can get access to the private repo, and see the differences between the commits in detail.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (5 by maintainers)
Top GitHub Comments
Yes, you’re right. That was the issue and apparently GitHub doesn’t allow manual purge so I disabled the caching first and it finally build successfully. Thanks!
@dominicarrojado Maybe CI cache?