angular2-notifications icon indicating copy to clipboard operation
angular2-notifications copied to clipboard

Library is not working with Angular 10

Open fallais opened this issue 5 years ago • 2 comments

I have an error.

ERROR in node_modules/angular2-notifications/index.d.ts:16:40 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

16     static forRoot(options?: Options): ModuleWithProviders;

Reference about the issue : https://angular.io/guide/migration-module-with-providers

fallais avatar Aug 20 '20 16:08 fallais

@fallais I am using Angular version 10.0.5 and my app module only has this one import line and it is working fine.

SimpleNotificationsModule.forRoot()

Try running once again with this to check if the Ivy engine is enabled and if Ivy is not allowing this library to compile.

"angularCompilerOptions": {
    "enableIvy": false,
  }

Kumar-Aakash avatar Aug 31 '20 06:08 Kumar-Aakash

Hi @fallais are you still facing the issue? If so, can you share your package.json file? The migration step you are mentioning has been done and it's available in v9.0.0

Guerric-P avatar Nov 16 '20 18:11 Guerric-P