ts-node typescript error: cannot find module or its corresponding type declarations
I installed a package and I can see it in node_modules with its type declarations file. But I’m still getting the “cannot find module or its corresponding type declarations” error when I attempt to start the dev server using ts-node. I’ve tried deleting and reinstalling node_modules and pnpm-lock.yaml, and restarting the VSCode TS server. A rough sketch of the project directory structure: MainProjectDir - package.json - tsconfig.base.json - tsconfig.json - vite.config.ts - server/ - tsconfig.json - ... - src/ - node_modules/ - ... When I attempt to start the dev server using npx ts-node --show
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.