Unexpected value 't' imported by the module 'function(t){}'. Please add a @NgModule annotation


#1

Hi Team,

Thank you for your API… We are trying to integrate in angular 4 project. It works fine in local testing. But when deploying it on server we are receiving teh below error. requesting your support on this.

Unexpected value ‘t’ imported by the module ‘function(t){}’. Please add a @NgModule annotation.


#2

Hi,

We have no experience with Angular, but just by looking at the one line you pasted, I suppose you need something to appease Angular. We are using this API from React and vanilla JS without troubles. Sorry I cannot guide you any further.