Swiip / generator-gulp-angular

Yeoman generator for AngularJS with GulpJS [UNMAINTAINED next iteration is FountainJS]
http://fountainjs.io
3.72k stars 665 forks source link

Build does not work, serve does #965

Open chap31 opened 8 years ago

chap31 commented 8 years ago

When I start my app with gulp serve everything works fine. When I gulp build my app (deleted distbefore, so everything is clean) my app does not start. I'm getting this error for all directives I use:

Error: [$compile:multidir] Multiple directives [acmeMalarkey (module: myapp), acmeMalarkey (module: myapp)] asking for new/isolated scope on: <acme-malarkey extra-values="['Yeoman', 'Gulp', 'Angular']">

Same for acmeNavbar and my custom directives:

Error: [$compile:multidir] Multiple directives [acmeNavbar (module: myapp), acmeNavbar (module: myapp)] asking for template on: <acme-navbar creation-date="main.creationDate">

How can I fix this?

//EDIT: gulp serve:dist also not working.

chap31 commented 8 years ago

Some more info: Using latest Node.js (4.2.4), latest npm, generator is up-to-date, as well as all dependencies. Mac OS X. yo-rc is attached: http://pastebin.com/raw/wuDL5Bn9

chap31 commented 8 years ago

Updated also Angular.js to 1.4.8 without improvement.

chap31 commented 8 years ago

Holy shit, the keys for all element have changed from "none" to other ones. This had the effect that gulp-consolidate was not added to package.json leading in this mess.

So keep in mind when updating this generator to also look at the .yo-rc file and update it manually is well. Just keeping the old config (like the current update guide suggests) is not enough. Maybe we should update the current guide?