Unable to find typings.d.ts and declare modules in angular 2 typescript app

前端 未结 3 1112
死守一世寂寞
死守一世寂寞 2021-01-05 02:55

I am new to Typescript and Angular 2. I need to install an npm dependency and use it in my angular 2 app.

The dependency is https://www.npmjs.com/package/ng2-stomp-s

3条回答
  •  遥遥无期
    2021-01-05 03:39

    If you are not using new version of angular you can't find typings.d.ts file in your project. My suggestion is to update your project using angular CLI https://cli.angular.io/

提交回复
热议问题