ngx-malihu-scrollbar
ngx-malihu-scrollbar copied to clipboard
Unable to import module
I'm receiving this error when trying to serve after importing the MalihuScrollbarModule
ERROR in node_modules/ngx-malihu-scrollbar/src/malihu-scrollbar.module.d.ts:3:23 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).
static forRoot(): ModuleWithProviders;
The error refers to the following file
import { ModuleWithProviders } from '@angular/core';
export declare class MalihuScrollbarModule {
static forRoot(): ModuleWithProviders;
static forChild(): ModuleWithProviders;
}
The error is only in version 9. version 8 is working fine. Please advise. Thanks.
Hi @SalmanTariq,
This is probably due to the Angular version of your application. Ngx-malihu-scrollbar v9.0.0 should be used with Angular 9.
@jfcere I'm using Angular 10. Version 8 is working fine though in the same Angular project. Should I try adding the type in a PR?
I'll update the library to Angular 10, this should fix it.