Link to home
Create AccountLog in
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'.
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

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
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account