Dave Partner

typescript getting error TS2304: cannot find name ' require' , webpack error etc

  • 0 Replies

0 Members and 1 Guest are viewing this topic.


Offline Dave Partner

  • Administrator
  • Full Member
  • *****
  • 109
    • View Profile
If you are getting this error while building an angular2 project or an ionic2 project here is what to do to resolve it.

Open your command line, navigate to your project root folder using your command line and run the following commands

npm install -g typings

npm install

typings install

That's all, serve your project again and it should be up and running smoothly.