Next.js Discord

Discord Forum

I’m encountering an error when running pnpm types as described in Next.js’s developing.md.

Unanswered
Russian Blue posted this in #help-forum
Open in Discord
Russian BlueOP
[Error] TS5055 occurs when running pnpm types, and the type definitions cannot be generated.

Environment Information
• OS: macOS Sequoia 15.5
• Node.js: v23.10.0
• pnpm: v10.11.0

Next.js Repository State
• Cloned Commit SHA: d937203f39
• Branch Name: my-test-branch

Steps to Reproduce

git clone https://github.com/vercel/next.js.git
cd next.js
pnpm install
pnpm dev
pnpm types


Full Error Log

next: error TS5055: Cannot write file '/Users/atsushi23/next.js/packages/next/dist/client/app-call-server.d.ts' because it would overwrite input file.
next: error TS5055: Cannot write file '/Users/atsushi23/next.js/packages/next/dist/client/app-find-source-map-url.d.ts' because it would overwrite input file.
next: error TS5055: Cannot write file '/Users/atsushi23/next.js/packages/next/dist/shared/lib/image-config.d.ts' because it would overwrite input file.
next: error TS5055: Cannot write file '/Users/atsushi23/next.js/packages/next/dist/shared/lib/image-loader.d.ts' because it would overwrite input file.
next:  ELIFECYCLE  Command failed with exit code 1.
lerna ERR! pnpm run types exited 1 in 'next'
 ELIFECYCLE  Command failed with exit code 1.

0 Replies