You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but with Pnp I keep getting error that Uncaught Error Error: Cannot find module 'ts-node/register' despite that ts-node installed in my package. How can i make debugger work with pnp?
I tried to specify ts-node directly: MY_COMPUTER/.nvm/versions/node/v22.11.0/bin/node ./../../../../../opt/homebrew/bin/ts-node MY_MONOREPO/packages/api/src/index.ts but got error like: Unable to compile TypeScript: packages/api/src/index.ts(1,44): error TS2307: Cannot find module 'express' or its corresponding type declarations. when ts-node cant correctly resolve ipmports. I guess pnp is a problem here
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In node_modules style it looks like this:
Launch.json
but with Pnp I keep getting error that Uncaught Error Error: Cannot find module 'ts-node/register' despite that ts-node installed in my package. How can i make debugger work with pnp?
I tried to specify ts-node directly:
MY_COMPUTER/.nvm/versions/node/v22.11.0/bin/node ./../../../../../opt/homebrew/bin/ts-node MY_MONOREPO/packages/api/src/index.ts
but got error like:Unable to compile TypeScript: packages/api/src/index.ts(1,44): error TS2307: Cannot find module 'express' or its corresponding type declarations.
when ts-node cant correctly resolve ipmports. I guess pnp is a problem hereBeta Was this translation helpful? Give feedback.
All reactions