I recently picked up TypeScript. Coming from an object oriented background, it felt natural and easy (for the most part) to learn.
I learn most of it in a day. However, there are some very important parts that still escape me. This is from needing to get a project done, vs taking the time to learn the other 10% of TypeScript, which is where the important tidbits live.
I spend 2 hours trying to figure out why my new module declaration files were not being found. The IDE clicked through and could find them just fine.
I checked that they were all there, that the package.json "types" pointed to the file, all seemed to be configured right.
Well apparently for what ever reason, you have to add "baseUrl": "." to the tsconfig.js file..... I thought that it would default to the root directory.
Why is the hell did that fix my code? How frustrating!
This leads me to the frustrating point that the devil is in the details.
How many of you have been stumped, just to realize you missed something simple due to not fully learning a language?
What was it and did you learn anything from it?