问题描述
我想将mic-recorder-to-mp3库添加到有角度的应用程序中,以从浏览器记录mp3。
我通过以下方式添加了库:
npm install mic-recorder-to-mp3
然后我将导入内容添加到app.component.ts的顶部。
从“ mic-recorder-to-mp3”导入*作为Mic;
启动应用程序时: ng服务
我在浏览器控制台中遇到以下错误:
index.js:15500 Uncaught ReferenceError: Lame is not defined
at index.js:15500
at index.js:2
at Object../node_modules/mic-recorder-to-mp3/dist/index.js (index.js:5)
at __webpack_require__ (bootstrap:79)
at Module../src/app/app.component.ts (main.js:351)
at __webpack_require__ (bootstrap:79)
at Module../src/app/app.module.ts (app.component.ts:11)
at __webpack_require__ (bootstrap:79)
at Module../src/main.ts (environment.ts:16)
at __webpack_require__ (bootstrap:79)
我正在使用:Angular CLI:8.3.29,节点:12.18.3,package.json screen
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)