Next.js Discord

Discord Forum

TSC server hanging

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
I have an nx monorepo that uses typescript references, I have a backend nest.js app, a schema library (includes nest.js) and a next.js application

when I import a type from the schema lib which is not buildable and uses zod, it freezes the tsc server, this works fine on any other node.js app just fine

I investigated and found these two fields in the tsconfig causes the issue to happen.

"module": "esnext",
"moduleResolution": "bundler"

Without them, tsc works as expected, what could be the reason this is happening, and are they required in the next.js app

0 Replies