-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
generator-angular error with gulp #1199
Comments
try replace .pipe($.useref.restore()) |
@benjipott that works but |
if you change the .bowerrc file to look for the bower_components inside the app folder |
bowerrc doesnt specify where to look for the components; it specifies where to place them. we moved them out of the app folder so there is something else going on |
I replace |
replace all task code |
@kevinwon1985 that seems to work except now angular isnt found in my project when i do gulp serve, is there something else i have to do? |
@9mm try this repository to instead your generator-angular, I has work on this bugs recently, and pull request, but not merged yet now. |
I am getting a similar error that @aerlaut reported. When I build with gulp I receive an error that reads:
Here is the code referenced in the error:
|
Try using the master branch from here and see if that works |
Check this jonkemp/gulp-useref#153 |
What's going on with this? Can't find bower files... is this a useref problem? |
gulp-useref v3 does not have assets() function, and "philosophy" is a bit different. In order to fix this, you have to re-write whatever code you have (Info from here: https://www.npmjs.com/package/gulp-useref see bottom, how TO), OR just make sure that you are using older version of gulp-useref, in your packages.json:
|
Is this being patched in a new version? I just started using Yeoman, did a fresh install of yeoman, npm, bower, and generator-angular and I ran into the same issues, |
I'm still having issues as well, same story as @ChrisPenner I also made the change that @kevinwon1985 mentioned, it fixed I was hoping to build a new application at work using gulp and yeoman but I might have to move another way. Would appreciate any insight. |
Hi, I made the followings and now
The problem was not only that the gulpfile referenced the bower_components in the wrong folder, but that the index file was modified, but was created in the views folder. |
bower_components should not be in |
Just uploaded a PR with solves this almost the way @szantner did but with out modifying the location of the |
It turned out my first approach broke the main build process... I now changed it so that serve tasks use a middleware to serve the |
1st issue, yeoman build is referring to gulp wiredep not gulp bower: So long story short, replace Hope this clarifies it. |
The question has been discussed here for any future references: http://stackoverflow.com/a/36073950/1242321 |
ok, have many fixes, but officially (from Yeoman) nothing?? last release: 11 Dec 2015 '¬¬ |
check @ksgupta's stackoverflow link to get the bug free gulpfile! 💯 💯 |
When using Gulp with
angular-generator
I received error :task 'wiredep' is not in you gulpfile
I tried running the build using
gulp
and received error :TypeError: $.useref.restore is not a function
The text was updated successfully, but these errors were encountered: