Search code examples
angularvmware-clarity

Uncaught TypeError: Cannot read property 'chocolate' of undefined


I am getting this error:

Uncaught TypeError: Cannot read property 'chocolate' of undefined

when building (ng build --prod) my Angular project with @clr version 0.12.6 and more.

Anybody got the same issue and if so, were you able to resolve it and how?

Anybody could tell me where the 'chocholate' property is used? That could help me to point out my issue.

Thanks


Solution

  • Sometimes your node modules get out of sync, try deleting the directory and reinstalling. I recommend using NPM 5+ or Yarn to get a proper lock file to help keep this in sync better.