Skip to main content

nextjs-client-server-boundary-dns-error

Stars9
Forks2
UpdatedMarch 10, 2026 at 08:02

Fix "Module not found: Can't resolve 'dns'" (or 'fs', 'net', 'tls') errors in Next.js with Prisma. Use when: (1) Build fails with "Can't resolve 'dns'" from pg/connection-parameters.js, (2) Error trace shows "[Client Component Browser]" importing server modules, (3) Using Prisma with @prisma/adapter-pg and getting Node.js module errors, (4) Barrel exports cause unexpected server code in client bundles. Covers: barrel export patterns, Prisma enum imports, direct component imports, serverExternalPackages.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly