no0x9d / ngx-strongly-typed-forms

Strongly typed definitions for Anglulars `@angular/forms`
MIT License
59 stars 11 forks source link

Cannot find module '@angular/forms/src/model'. #12

Closed RyannGalea closed 5 years ago

RyannGalea commented 5 years ago

Hey guys,

Any idea how I can resolve this issue:

ERROR in node_modules/ngx-strongly-typed-forms/model.d.ts(2,27): error TS2307: Cannot find module '@angular/forms/src/model'.

I changed the typing related to 'FormHooks' to 'any' inside of model.d.ts to allow me to continue working on the project but it obviously is not the correct fix.

Rockstar311 commented 5 years ago

Yes, the same problem can't update my project to Angular 8 through this package

hamzaabamboo commented 5 years ago

I believed that FormHooks was not exported from @angular/forms.

declare type FormHooks = 'change' | 'blur' | 'submit';
no0x9d commented 5 years ago

Yes, I used an internal declaration of FormHooks which was removed. In the new version 8.0.1 i declare FormHooks myself. I hope this should solve the problem.