Next.js Discord

Discord Forum

Failed to patch lockfile

Unanswered
Blanc de Hotot posted this in #help-forum
Open in Discord
Blanc de HototOP
> next dev -p 5000

  ▲ Next.js 15.0.0-rc.0
  - Local:        http://localhost:5000
  - Experiments (use with caution):
    · reactCompiler

 ✓ Starting...
 ⚠ Found lockfile missing swc dependencies, patching...
 ⨯ Failed to patch lockfile, please try uninstalling and reinstalling next in this workspace
TypeError: Cannot read properties of undefined (reading 'os')

I get this warning when running pnpm run dev. I have tried uninstalling and reinstalling, I suspect the warning may be caused by using the experimental builds:
    "next": "15.0.0-rc.0",
    "react": "19.0.0-rc-9d2da591-20240808",
    "react-dom": "19.0.0-rc-9d2da591-20240808"

1 Reply

Blanc de HototOP
Any pointers on resolving this would be super helpful! I believe this is causing my pnpm run build to fail