<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
See original GitHub issueWhat version of Next.js are you using?
11.0.1
What version of Node.js are you using?
14.17.3
What browser are you using?
Chrome
What operating system are you using?
Windows
How are you deploying your application?
Not deployed yet
Describe the Bug
Simply creating a new Next.js project and running yarn dev
/ npm run dev
logs the following warning in the console:
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
I have tried deleting yarn.lock, and running yarn install
again , but that did not do anything.
I’m not sure if this is related but, when first creating the project, I also get the following warnings:
Expected Behavior
No warning, or an explanation of the warning.
To Reproduce
yarn create next-app
ornpx create-next-app
- Finish the setup
yarn dev
ornpm run start
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:7 (2 by maintainers)
Top Results From Across the Web
<w> [webpack.cache.PackFileCacheStrategy] Caching failed ...
cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies · Ask Question. Asked 4 months ago.
Read more >[Solved] Message 'Caching failed for pack: Error: Unable to ...
virginie chaix Asks: Message 'Caching failed for pack: Error: Unable to snapshot resolve dependencies' when creating a nextjs application
Read more >Caching - webpack
This guide focuses on the configuration needed to ensure files produced by webpack compilation can remain cached unless their content has changed. Output ......
Read more >webpack/webpack - Gitter
However I see the following warning: <w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: ENOENT: no such file or directory, ...
Read more >[Solved]-Message 'Caching failed for pack: Error
[Solved]-Message 'Caching failed for pack: Error: Unable to snapshot resolve dependencies' when creating a nextjs application-node.js. Search. score:0.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @sokra Could you have a look at the above log and help me figure out what’s wrong? All I can understand is that some package is missing, but I am not sure how to fix that. Any help would be appreciated, thank you!
Some kind of error happened… You need to enable debug logging to see the error: