nextjs app router, "fs", "os", "zlib-sync" and trpc experimental edge Router
Environement: Turborepo + pnpm
What's wrong: when I tried to build nextjs, the error is like this warp block https://app.warp.dev/block/h9b0V2covbaCMv8boeSpvc
What I have: a package with discord.js and includes "fs" module, and imported via trpc/[trpc/route.ts in nextjs.
I tried some fixes to configure webpack in next.config liks so, but it didn't work:
I have also disabled edge runtime in trpc edge router, relevant code be:
and
Not sure if more information is needed for help?
A block has been shared!
pnpm turbo build --filter=nextjs ### WARNING Issues occurred when constructing package graph. Turbo...
0 Replies