0

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.

1 Answers1

0

Engagespot maintainer here.

This has been fixed in the latest version (v1.1.3) of @engagespot/client.

You can check it out here

Hemand S
  • 77
  • 1
  • 5