Turbopack build errors with fs in Client Components happen because filesystem modules like fs are Node.js-only and can't bundle for browsers unlike webpack, Turbopack is stricter about tree-shaking them out.
Move any fs usage to Server Components, Route Handlers, or API routes since Client Components ("use client") run in browsers without Node.js APIs. If a third-party library imports fs and leaks it to client bundles, create a separate server-only wrapper or use dynamic imports with { ssr: false } to isolate it. For Turbopack-specific cases, add serverExternal: ['fs'] in next.config.ts to explicitly exclude it from client bundles during builds.
.png)

.png)
