#Signal forms - Build error

16 messages · Page 1 of 1 (latest)

pseudo shale
#

Hello,
I'm seeing a build error in my application, regarding the Field from Angular signal forms:

✘ [ERROR] TS2420: Class 'Field<T>' incorrectly implements interface 'ɵControl<T>'.
  Type 'Field<T>' is missing the following properties from type 'ɵControl<T>': classes, ɵinteropControl, ɵregister [plugin angular-compiler]

    node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@angular+compiler@21._59c4d9426b2a8c81ae3dcc2ac0b93c37/node_modules/@angular/forms/types/_structure-chunk.d.ts:71:14:
      71 │ declare class Field<T> implements _Control<T> {
         ╵               ~~~~~

Any hints on what going on?

echo gyro
charred light
#

I am also seeing this same build error when upgrading to 21.0.4.

worthy comet
#

Can you share the repro?

charred light
worthy comet
#

Thank you!

worthy comet
#

Is this broken in stackblitz, or locally as well?

charred light
#

I just tested creating a new angular app locally and it seems to work fine there. Must be a Stacbklitz issue.

worthy comet
#

Interesting, we also can't repro outside of stackblitz

#

looks like it's like this with skipLibCheck off

charred light
#

Ah I see. Setting that option to true will work for me. Appreciate it!

pastel saffron
#

fwiw, new projects are created with skipLibCheck: true, it's a recommended setting.

pseudo shale
#

For me the error was on my local machine. But I will test with the skipLibCheck: true.

pseudo shale
#

Ok, for me it's also fixed. Thank you for your help.

worthy comet
#

thanks for reporting

worthy comet
#

This has been fixed yesterday, should work now