IonToggle and IonRadioGroup are now giving RuntimeError: NG01203: No value accessor for form control name: <controlname> for reactive forms

I have quite a large form, which includes the above elements. No, after going to standalone, those controls only give me the No value accessor error.

All other controls work fine, including IonTextArea, and these use to work. The control is there, and has the correct value (true)

It has the correct name, but valueAccessor is null

I created a new Ionic app with a form and the above elements worked fine.

My question is how can I possibly diagnose why I have this problem in my application. I can see the control should have this (source below), so I am stumped as to why it is null for me, and how can I find out why. I can’t provide a simple example, as it works in a new simple example, but not in my project I have been converting to standalone.

And why just these to control, and not all the others?

Anyone have any suggestions on how to diagnose?

Thanks in advance

Ah, my problem was I had not imported these 2 components…

Strange, normally the IDE show s red error if I have missed any,

Anyway, now they are imported, and makes sure they are from standalone, it all works

image

1 Like