Uncaught TypeError: Cannot read property 'chocolate' of undefined

故事扮演 提交于 2019-12-13 04:22:54

问题


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


回答1:


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.




回答2:


Finally, by cleaning up all the node_modules directory and install everything again worked perfectly!



来源:https://stackoverflow.com/questions/51724815/uncaught-typeerror-cannot-read-property-chocolate-of-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!