-
Notifications
You must be signed in to change notification settings - Fork 11
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
build project with ivy enabled #14
Comments
see package.json and yarn.lock |
First off, sorry for the late reply. |
I did some research on this problem. It seems that Ivy has stronger compile time type checking than the aot build before. Because I don't inherite from the Angular classes my types are not compatible. For more information a see the TS documentation |
dear @no0x9d, |
In Angular 9-rc.1 this error only occurs in the strictest typecheck mode, ie., with |
help wanted, question
using ivy enabled and form typed
export type RecipeForm = Omit<Recipe, 'id'>;
cause in prod build the following error
source line is
<form [formGroup]="form">
and the necessary code parts are
public form: FormGroup<RecipeForm>;
and
this.form = new FormGroup({ title: new FormControl<string>('', [ Validators.required, Validators.maxLength(100) ]), description: new FormControl<string>('', Validators.required), duration: new FormControl(null) });
is this error in ivy or this project?
without ivy enabled in tsconfig.app.json it build fine.
The text was updated successfully, but these errors were encountered: