TSC server hanging
Unanswered
Giant panda posted this in #help-forum
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
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