Open nimatrazmjo opened 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:
@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
you can use ModuleWithProviders<any>
This is still an issue on Angular 12
Getting same issue +1
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