rpaschoal / ng-chat

💬 A simple facebook/linkedin lookalike chat module for Angular applications.
MIT License
155 stars 92 forks source link

ERROR: An accessor cannot be declared in an ambient context #154

Closed glenelkins1984 closed 4 years ago

glenelkins1984 commented 4 years ago

Hi

I've installed this library but it doesn't work! I just get the following errors:

ERROR in node_modules/ng-chat/ng-chat/ng-chat.component.d.ts(25,9): error TS1086: An accessor cannot be declared in an ambient context.
    node_modules/ng-chat/ng-chat/ng-chat.component.d.ts(26,9): error TS1086: An accessor cannot be declared in an ambient context.
    node_modules/ng-chat/ng-chat/ng-chat.component.d.ts(73,17): error TS1086: An accessor cannot be declared in an ambient context.
    node_modules/ng-chat/ng-chat/ng-chat.component.d.ts(74,9): error TS1086: An accessor cannot be declared in an ambient context.

I am using angular/core 8.2.14 and angular/cli 8.3.23

rpaschoal commented 4 years ago

Hi @glenelkins1984 ,

ng-chat was recently upgraded to Angular 9 and it included a lot of dependencies upgrade too, Typescript included. Here are the changes that I am about to merge into master: https://github.com/rpaschoal/ng-chat/pull/153/files

If you don't want to upgrade your application at this stage, you could use one of the previous versions of ng-chat, version 2.0.5.

Hope it helps, thanks!

glenelkins1984 commented 4 years ago

@rpaschoal thanks!