question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

processContextHashSnapshot(path, tsh.hash) throws error

See original GitHub issue

Do 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:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dominicarrojadocommented, Oct 23, 2021

@dominicarrojado Maybe CI cache?

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!

1reaction
alexander-akaitcommented, Oct 23, 2021

@dominicarrojado Maybe CI cache?

Read more comments on GitHub >

github_iconTop Results From Across the Web

processContextHashSnapshot throws error #29752 - GitHub
Solution: I deleted .next to fix this. I'd run vercel --force to skip the build cache if I was on vercel. Expected Behavior....
Read more >
TypeError: Cannot read property 'hash' of null, webpack
Project works without a single error in development but fails in build. ... processContextHashSnapshot(path, tsh.hash); ^ TypeError: Cannot ...
Read more >
Unable to submit transactions to API due to genesis hash error
I'm getting a strange (to me) error regarding the genesis hash value when I try to use the Testnet API from the shell....
Read more >
Renovate Bot Package Diff
processContextHashSnapshot (path, tsh.hash); ... + // we retry 2 times to catch this case before throwing the error. 301. + return doStat();.
Read more >
at new hash (node:internal/crypto/hash:71:19) - You.com
I was trying to add some color themes to this pack following your instructions on modifying files and #199 #200 but I am...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found