Skip to content

Turbopack file watcher broken in Podman on macOS #90825

@tapeo

Description

@tapeo

Link to the code that reproduces this issue

https://github.com/tapeo/nextjs-podman-turbopack-repro

To Reproduce

  1. Install Podman on macOS Apple Silicon (brew install podman)
  2. Initialize the Podman machine: podman machine init && podman machine start
  3. Clone the reproduction repo and cd into it
  4. Run the dev server inside a Podman container:
podman run -it --rm \
  --name nextjs-repro \
  -v "$(pwd):/usr/src/app:Z" \
  -w /usr/src/app \
  -p 3000:3000 \
  node:20-slim sh -c "npm install && npm run dev"
  1. Open http://localhost:3000
  2. Edit src/app/page.tsx on the macOS host
  3. Observe: no hot reload, no recompile triggered
  4. Manually reload the browser — still shows stale content

To confirm the volume mount works fine:

# In a second terminal while the container is running:
podman exec -it nextjs-repro cat /usr/src/app/app/page.tsx
# Edit the file on the host, re-run — the change IS visible inside the container
# This confirms the issue is Turbopack's watcher, not the volume mount

Current vs. Expected behavior

Current:
Turbopack does not detect file changes made on the macOS host. No hot reload
occurs and a manual browser refresh still shows the old content. The dev server
console shows zero recompilation activity after saving a file.

Expected:
Turbopack should detect file changes and trigger a rebuild

Confirmed workaround:
Falling back to --webpack with WATCHPACK_POLLING=true fully restores both
hot reload and manual reload:

podman run -it --rm \
  -e WATCHPACK_POLLING=true \
  -v "$(pwd):/usr/src/app:Z" \
  -w /usr/src/app \
  -p 3000:3000 \
  node:20-slim sh -c "npm install && npx next dev --webpack"

Note: Docker Desktop works, Podman does not

Provide environment information

Operating System:
  Platform: linux (Podman AppleHV VM)
  Arch: arm64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Jan 11 17:13:10 UTC 2026
  Available memory (MB): 1945
  Available CPU cores: 4
Binaries:
  Node: 20.20.0
  npm: 10.8.2
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  next: 16.2.0-canary.73
  react: 19.2.4
  react-dom: 19.2.4
  typescript: 5.9.3
Next.js Config:
  output: N/A

Host machine:
  Platform: darwin (macOS, Apple Silicon arm64)
  Podman: 5.8.0 (brew)
  VM type: AppleHV
  Mount type: virtiofs

Which area(s) are affected? (Select all that apply)

Turbopack

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    TurbopackRelated to Turbopack with Next.js.linear: turbopackConfirmed issue that is tracked by the Turbopack team.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions