【发布时间】:2019-02-05 19:04:09
【问题描述】:
我在我的应用程序中使用了 howler 包。我使用
npm install --save @types/howler 并在我的 index.html 中包含以下脚本标记
<script src="./node_modules/howler/dist/howler.min.js"></script>
但当我尝试使用 ng serve 命令为我的应用程序提供服务时,它仍然显示错误 error TS2304: Cannot find name 'Howl'。
【问题讨论】:
-
您可能需要将它添加到您的 app.module.ts 中的导入中。只是一个猜测,但大多数东西都需要放在那里
标签: angular