Next.js Discord

Discord Forum

Weird webpack caching warnings

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
I'm experiencing some really weird warnings from webpack in my dev server:
[webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: ENOENT: no such file or directory, rename '<path>/.next/cache/webpack/client-development/0.pack.gz_' -> '<path>/.next/cache/webpack/client-development/0.pack.gz'

So far, I've rm -rf'd my .next dir, node_modules dir, package-lock.json file multiple times, but the warning keeps coming back. As soon as the error pops up, HMR stops working, I need to quit the dev server and start it again and refresh my browser.

Running nextjs 13.5.2. Is anyone able to point me in a direction on how to get this solved?

0 Replies