Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node types are not compatible with angular 15/16 types #423

Open
DonnOMalleyHC opened this issue Jan 10, 2024 · 1 comment
Open

Node types are not compatible with angular 15/16 types #423

DonnOMalleyHC opened this issue Jan 10, 2024 · 1 comment

Comments

@DonnOMalleyHC
Copy link

Angular version:
15 & 16

ng-multiselect-dropdown version:
1.0.0

Description of issue:
We get an error in our HTML file showing 'AbstractControl<any, any> | null' is not assignable to type 'FormControl'
This happened after upgrading our project to Angular 15 (from 8 - it was too long) and having to update @types/node to work with all the other libraries (e.g. PrimeNG, rxjs) and now we can no longer use the 'formControl' input binding.

Steps to reproduce:
Upgrade @types/node library to v15 or higher.

Expected result:
No Compile errors and I can assign a FormControl to the [formControl] input.

Actual result:
Compile Error - Code won't run.

MicrosoftTeams-image

@DonnOMalleyHC
Copy link
Author

I believe this is as simple as updating the @types/node to a version that supports Node 16 or Node 18 which is the version of Node needed to support Angular 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant