TypeScript getting error TS2304: cannot find name ‘ require’
Quick and Dirty If you just have one file using require, or you’re doing this for demo purposes you can define require at the top of your TypeScript file. declare var require: any TypeScript 2.x If you are using TypeScript 2.x you no longer need to have Typings or Definitely Typed installed. Simply install the … Read more