Webpack Cache Error
Unanswered
Вождът Бял Полуовес posted this in #help-forum
Hello, guys!
I'm using NextJS 14 on my MacOS Sonoma. When I run
The issue is only on my MacBook since it works on Vercel flawlessly.
I tried to find a solution in internet but none of the suggested fixes worked for me. Does anyone have an idea of what might be the issue?
I'm using NextJS 14 on my MacOS Sonoma. When I run
npm run build I get the following error:[webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependenciesThe issue is only on my MacBook since it works on Vercel flawlessly.
I tried to find a solution in internet but none of the suggested fixes worked for me. Does anyone have an idea of what might be the issue?
2 Replies
@Вождът Бял Полуовес Hello, guys!
I'm using NextJS 14 on my MacOS Sonoma. When I run npm run build I get the following error:
[webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
The issue is only on my MacBook since it works on Vercel flawlessly.
I tried to find a solution in internet but none of the suggested fixes worked for me. Does anyone have an idea of what might be the issue?
you probably are having nodejs 23. downgrade nodejs to 22
if you already have
nvm, it's as simple as nvm install 22 and nvm use 22. if you don't have nvm, i don't know how to downgrade you'll have to look up the downgrading process