You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added it to my providers. Unfortunately when the project starts I've this error:
AmiEventsStream.js:16 Uncaught TypeError: Class extends value undefined is not a constructor or null
at Object../node_modules/asterisk-ami-events-stream/lib/AmiEventsStream.js (AmiEventsStream.js:16)
at __webpack_require__ (bootstrap:83)
at Object../node_modules/asterisk-ami-connector/lib/AmiConnection.js (AmiConnection.js:10)
at __webpack_require__ (bootstrap:83)
at Object../node_modules/asterisk-ami-connector/lib/index.js (index.js:11)
at __webpack_require__ (bootstrap:83)
at Object../node_modules/asterisk-ami-client/lib/AmiClient.js (AmiClient.js:10)
at __webpack_require__ (bootstrap:83)
at Module../src/app/_service/pbx/asteriskPbx.service.ts (asteriskPbx.service.ts:2)
at __webpack_require__ (bootstrap:83)
Am I doing something wrong? Do I need something to make the library work in Angular 7?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to use the library into my Angular 7 project.
I created a service like this:
import {Injectable} from '@angular/core';
const AmiClient = require('asterisk-ami-client');
I added it to my providers. Unfortunately when the project starts I've this error:
Am I doing something wrong? Do I need something to make the library work in Angular 7?
Thanks
The text was updated successfully, but these errors were encountered: