Next.js Discord

Discord Forum

Webpack error non-stop

Unanswered
Persian posted this in #help-forum
Open in Discord
Avatar
PersianOP
Hey! I´m wondering if others get webpack errors in terminals non-stop? I fix them, 1 day later something else. I have tried to search for the main problem, if I have something in my directory that is missing. This is one example of a web-pack error.

[webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: ENOENT: no such file or directory, stat '/Users/oscarthroedsson/Documents/MyOwnProjects/healthy/.next/cache/webpack/client-development/1.pack.gz'

Every error is that something doesnt exist.

1 Reply

Avatar
PersianOP
Mu solution is:
// turn of server
rm -rf .next
// turn on server