[TypeScript] Error: Could not find a declaration file for module XYZ

After Jumping from React to Angular, The First thing i fall in love was TypeScript. I loved it so much that i have planned it to use in React instead of normal JavaScript.

While importing a module called Busboy as like this:

import * as Busboy from “busboy”;

The Error was like this:

Solution: All you have to do is edit your TypeScript Config file (tsconfig.json) and add a new key value pair as

I am posting this tiny piece of information because I am sure there will be others who are slowly moving from JavaScript to TypeScript and if they encounter this Error, they can solve it within a minute. Although in my case it took me 5 minutes to figure out what’s going wrong.

Some claps will be appreciated!

Developer? Trying to be One! Work: https://play.google.com/store/apps/developer?id=Amandeep+Kochhar