NileshPatel17 / ng-multiselect-dropdown

Multiple Select Dropdown Component
https://nileshpatel17.github.io/ng-multiselect-dropdown/
328 stars 289 forks source link

ModuleWithProviders requires 1 type argument(s) #266

Open abanuprakash opened 4 years ago

abanuprakash commented 4 years ago

Angular version: 10

ng-multiselect-dropdown version:0.2.10

Description of issue: ERROR in node_modules/ng-multiselect-dropdown/ng-multiselect-dropdown.module.d.ts:3:23 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).

Steps to reproduce:

Expected result: upgrade to angular 10

Actual result:

Demo: Please share sample code link using StackBlitz or codesandbox

Any relevant code:

pawkos commented 4 years ago

The one of the breaking changes in Angular10 - this interface sygnature changed from interface ModuleWithProviders{} to interface ModuleWithProviders<T> {}

Other libraries are reporting similar issues: example

tiagowanke commented 4 years ago

Try adding to your package.json scripts "scripts": { "postinstall": "ngcc" }

When running npm install should compile the library properly.

rodriguesaalr commented 4 years ago

+1