total-typescript / tsconfig

The simplest way to set up your tsconfig.json
https://www.totaltypescript.com/tsconfig-cheat-sheet
796 stars 12 forks source link

Cannot find module without extension #5

Closed ASgmbv closed 4 months ago

ASgmbv commented 4 months ago

I'm currently developing a Node.js backend using TypeScript. However, I've encountered an issue where TypeScript doesn't recognize my imported files unless they include their extensions. Surprisingly, it recognizes files with a .js extension even if they are TypeScript files (.ts).

Any assistance on resolving this issue would be greatly appreciated!

Screenshot 2024-05-14 at 21 08 22

This is my tsconfig:

Screenshot 2024-05-14 at 21 07 29
mattpocock commented 4 months ago

https://www.youtube.com/watch?v=8ORIzvgNWhU

ASgmbv commented 4 months ago

Thank you! Your channel is a gem