简体   繁体   中英

Grunt Warning 6

Our automated build process incorporates a grunt task that periodically (more times than I'd like) generates a 6 return code.
According to the grunt web page 6 is a "Warning". Well okay, a warning for what? It's breaking our build since we would only pass on a 0 exit case. I'm looking at wrapping this in a script so I can catch this warning condition and generate a success exit code, though without any idea what the Warning might be I'm hesitant. It appears to work when I get this exit condition but would like a better understanding on what it may be.
Any ideas?

So this turned out to be an issue with grunt-contrib-less . I didn't recognize the associated less compiler error in our build log:

[39mnon_object_property_loadError: Cannot read property 'rules' of undefined in ../../XXXX/styles/modules/SomeLessFile.less on line null, column 0: [31m

Once I found this line a google search quickly found this in GitHub :

And have updated the grunt-contrib-less package. So far so good.

check http://gruntjs.com/api/grunt.fail :

If --stack is specified on the command-line and an error object was specified, a stack trace will be logged.

Or try to run "grunt --verbose --force"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM