Ngx-bootstrap: ModuleWithProviders Issue in Angular v10

Created on 6 Jul 2020  路  9Comments  路  Source: valor-software/ngx-bootstrap

Bug description:
Looks like the library is not updated the code to support the Angular v9.x or Angular v10.x upgrade compability checker - https://angular.io/guide/migration-module-with-providers#what-does-this-mean-for-libraries

Steps to reproduce the Issue:

  1. Add ngx-boostrap as peer dependency to any library which has Angular v10.x, now you should see the error for all the modules -

node_modules/ngx-bootstrap/collapse/collapse.module.d.ts:3:23 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).

static forRoot(): ModuleWithProviders;

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 5.6.x

Angular: Angular v10.x

Bootstrap: 4.x

Build system: Angular CLI,

Expected behavior

Build should work without any errors

Most helpful comment

I hope, that 6.0.0 will be available in next few days

All 9 comments

I see a branch 5.7.0 with the fix, can someone tell me when you will be releasing it?

hey @roopeshreddy
Yes, 5.7.0 has it, but, it was not released, because, has no support for Angular 10, so, we deciced to release a major update in 6.0.0.

Hi @daniloff200
Thanks for the update. We're upgrading to Angular v10 and this is blocking us. Is there any timeline for the 6.0.0?

hey @roopeshreddy
Yes, 5.7.0 has it, but, it was not released, because, has no support for Angular 10, so, we deciced to release a major update in 6.0.0.

Also, the fix which you guys made in v5.7.0 should resolve the issue which I mentioned. May be try considering this interim version release!

I hope, that 6.0.0 will be available in next few days

I hope, that 6.0.0 will be available in next few days

Thank you @daniloff200

6.0.0 was released and now available on npm

Hey @daniloff200! I went to the npm repo and it says that the most recent version is 5.6.1, even though your changelog says the 6.0.0 was released. Can you help me with that?

@munaretto 5.6.1 is the version with the latest tag
6.0.0 released with a next tag

If you open versions tab on npm, you will see that 6.0.0 is also available
Feel free to use 6.0.0 in your package.json :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ctrl-brk picture ctrl-brk  路  3Comments

webdev48 picture webdev48  路  3Comments

ravirajhalli picture ravirajhalli  路  3Comments

phmello picture phmello  路  3Comments

srjkrl20011991 picture srjkrl20011991  路  3Comments