nikestep / html-angular-validate

A HTML validator node module aimed at AngularJS projects
MIT License
14 stars 13 forks source link

Getting Fatal error: Cannot read property 'messages' of null #20

Closed ftdube closed 7 years ago

ftdube commented 7 years ago

Hi,

Overnight, it seems like one of the dependencies from html-angular-validate, w3cjs, got an update from version 0.3.0 to 0.3.1 and a bunch of its own dependencies have changed. From that point on, whenever I try to run htmlangular using grunt-html-angular-validate, I get the following message :

Running "htmlangular:main" (htmlangular) task
Fatal error: Cannot read property 'messages' of null

Process finished with exit code 3

Does that ring a bell to anyone? Is there an easy way to fix this?

jose1984 commented 7 years ago

Hi @ftdube,

I had the same problem, I just fixed it with these changes:

Prevent undefined options