ankosoftware / ng2-bootstrap-modal

Library to simplify the work with bootstrap modal dialogs
MIT License
54 stars 62 forks source link

Generic type 'ModuleWithProviders<T>' requires 1 type argument(s). #68

Open nimatrazmjo opened 4 years ago

nimatrazmjo commented 4 years ago

ERROR in node_modules/ng2-bootstrap-modal/dist/bootstrap-modal.module.d.ts:5:50 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

5     static forRoot(config: DialogServiceConfig): ModuleWithProviders;

Angular version:

nr@nr application % ng --version

 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | ' \ / | | | | |/ _ | '| | | | | | | / _ | | | | (| | || | | (| | | | || |_ | | // __| ||_, |_,||_,|| __|__|| |/

Angular CLI: 10.0.6 Node: 12.4.0 OS: darwin x64

Angular: 10.0.9 ... animations, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, platform-server ... router, service-worker Ivy Workspace:

Package Version

@angular-devkit/architect 0.1000.6 @angular-devkit/build-angular 0.1000.6 @angular-devkit/build-optimizer 0.1000.6 @angular-devkit/build-webpack 0.1000.6 @angular-devkit/core 10.0.6 @angular-devkit/schematics 10.0.6 @angular/cdk 10.1.3 @angular/cli 10.0.6 @angular/material 10.1.3 @angular/pwa 0.1000.6 @ngtools/webpack 10.0.6 @nguniversal/common 10.0.2 @nguniversal/express-engine 10.0.2 @nguniversal/module-map-ngfactory-loader 8.2.6 @schematics/angular 10.0.6 @schematics/update 0.1000.6 rxjs 6.6.2 typescript 3.9.7 webpack 4.43.0

gobimca2012 commented 4 years ago

you can use ModuleWithProviders<any>

martinsrs commented 3 years ago

This is still an issue on Angular 12

ajitparida commented 2 years ago

Getting same issue +1