Support Topics Documentation Slack YouTube Blog

Angular2- cli Typescript error

//Trying to setup with angular2-cli .

import * as Backendless from ‘backendless’;

Backendless.initApp("XXXXXX,“XXXXXX”, “v1”);

EXCEPTION: Uncaught (in promise): TypeError: WEBPACK_IMPORTED_MODULE_4_backendless.initApp is not a function
TypeError: WEBPACK_IMPORTED_MODULE_4_backendless.initApp is not a function
at new ExampleService

Any suggestions on a workaround to this problem ?
Thanks in advance.

Hi Sunny Daniel,
please try to import in next way:

import Backendless from 'backendless';

Regards,
Stanislaw