gruntjs - .jshintrc with Gulp, Jhipster -


when want set "underscore" (i used use 'grunt') , put in .jshintrc.

"globals": {   "_": false, 

now version 3.5.1 of jhipster use gulp , not know how configure because there no file .jshintrc. ans gives me error

angular.js:13550 referenceerror: _ not defined 

can me. thank you.

jhipster replaced jshint eslint in this change. because of this, should add globals section file .eslintrc.json same in .jshintrc. (similar issue)

based on referenceerror angular, looks don't have underscore dependency in index.html. run bower install underscore --save download , install underscore (this adds bower.json), run gulp inject:dep inject dependencies index.html automatically.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -