0

I upgraded from angular 11 to angular 12 and my build is failing when using configuration production. The following error appears:

Cannot read property 'visit' of undefined. Error picture

I saw that if I set the flag for AOT to false in angular.json the build is successful. Do you have any ideas what should I try next?

  • 1
    Does this answer your question? [JavaScript "cannot read property "bar" of undefined](https://stackoverflow.com/questions/8004617/javascript-cannot-read-property-bar-of-undefined) – Robert Harvey Jul 05 '21 at 15:56

0 Answers0