Skip to content

npm run dev: Watchpack Error #51730

@jelmd

Description

@jelmd

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
      Platform: linux
      Arch: x64
      Version: #91-Ubuntu SMP Thu Jul 15 19:09:17 UTC 2021
    Binaries:
      Node: 18.16.1
      npm: 9.5.1
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.4.8-canary.1
      eslint-config-next: 13.4.7
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.3

Which area(s) of Next.js are affected? (leave empty if unsure)

CLI (create-next-app), Standalone mode (output: "standalone"), Turbopack (--turbo)

Link to the code that reproduces this issue or a replay of the bug

https://github.com/vercel/next.js/tree/canary/examples/reproduction-template-app-dir

To Reproduce

npm run dev

Describe the Bug

Thousands of errors like:

Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached, watch '/home'
Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached, watch '/home/${LOGNAME}'

Expected Behavior

should start the dev server without any errors.

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

npm run dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    OutputRelated to the the output configuration option.bugIssue was opened via the bug report template.create-next-appRelated to our CLI tool for quickly starting a new Next.js application.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions