Avatar of chalie001
chalie001
 asked on

hi am having this issue when building for prod

C:\Angular3\alertmodel\dyn-cmp-finished>ng build --prod

Date: 2021-05-23T09:10:42.671Z
Hash: aa731731011b30959e97
Time: 8497ms
chunk {0} runtime.741402d1d47331ce975c.js (runtime) 1.41 kB [entry] [rendered]
chunk {1} main.4af9b61479361f268d39.js (main) 128 bytes [initial] [rendered]
chunk {2} polyfills.d64fff5b0a45205ed7b5.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} polyfills-es5.7f9896f05667ed1b2b2b.js (polyfills-es5) 68.1 kB [initial] [rendered]
chunk {4} styles.49d3806f2f5924a61028.css (styles) 111 kB [initial] [rendered]

ERROR in src/app/recipes/recipe-edit/recipe-edit.component.html(60,13): Property 'controls' does not exist on type 'AbstractControl'.
Node.jsReactJavaScriptAngular* Firebase Connection

Avatar of undefined
Last Comment
Zvonko

8/22/2022 - Mon
Julian Hansen

There is not enough here to help you.

The error is pretty clear - in your template you are doing something like this

let control of variablName.controls

Open in new window

Where variableName is of type AbstractControl - which does not have a property controls.
We would need to see
a) Where variableName is delcared and initialised in the .ts file
b) Where it is being used in the html file.
ASKER CERTIFIED SOLUTION
Zvonko

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy