Trying to import an npm module (Howler) in Angular 2 app

前提是你 提交于 2019-12-22 11:28:59

问题


I am trying to import Howler inside my angular 2 app, but it does not have a typings file. I am confused and have been searching for the answer, but cannot find anything. How do I go about importing "howler" inside my component without a typings file?


回答1:


Try DefinitelyTyped typings definition for howler.

Here is the repo on GitHub where you can find howler.d.ts

Here is the npm package info

TypeScript v2 use following command to install

npm install --save @types/howler

If you have any question, post in their Gitter chat



来源:https://stackoverflow.com/questions/41194942/trying-to-import-an-npm-module-howler-in-angular-2-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!