I'm trying to setup engagespot in my angular app as per the documentation https://documentation.engagespot.co/docs/javascript-guide/using-angular-package
here is the code.
import { Component, ViewChild, ElementRef, AfterViewInit } from "@angular/core";
import { render } from "@engagespot/client";
@Component({
selector: "app-root",
templateUrl: "./app.component.html"
})
export class AppComponent implements AfterViewInit {
@ViewChild("engagespotBellIcon") engagespotBellIcon: ElementRef;
ngAfterViewInit() {
render(this.engagespotBellIcon.nativeElement, {
apiKey: "<api_key>",
userId: "user@sample.com",
theme: {} //Theme Object to Customize the look and feel of the notification inbox.
});
}
}
But it's showing error
SyntaxError
/node_modules/@engagespot/core/dist/esm/index.js: Support for the experimental syntax 'classProperties' isn't currently enabled (1:1717):
Update I tried babel configurations as mentioned here - Support for the experimental syntax 'classProperties' isn't currently enabled. But the same error.