Skip to content

<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies #27650

@Fangston0

Description

@Fangston0

What 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:

[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:

image

Expected Behavior

No warning, or an explanation of the warning.

To Reproduce

  1. yarn create next-app or npx create-next-app
  2. Finish the setup
  3. yarn dev or npm run start

Metadata

Metadata

Assignees

No one assigned

    Labels

    WebpackRelated to Webpack with Next.js.bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions