Skip to content

In "dist" mode Angular throws an errors "Failed to instantiate module due it is not available!" But I can see it in vendor.js file. #547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AleksMeshkov opened this issue May 19, 2015 · 10 comments

Comments

@AleksMeshkov
Copy link

Hello!

This issue only occurs in the "dist" mode. Please have a look what I've got when running my app.

screenshot 2015-05-19 12 35 47

At first I thought that a0-angular-storage module wasn't compiled and included into the vendor.js file.
But it's there!

screenshot 2015-05-19 12 43 48

Moreover files from the assets folder (ckeditor.js, bootflat.css) are not found it the dist mode (the first screenshot).

Can you please help me to deal with this problems?

Thanks!

@AleksMeshkov
Copy link
Author

I'm staring to suppose that's not the generator-gulp-angular issue. When I remove a0-angular-storage and angular-jwt dependencies (from angular.module) it becomes ok.

@ghost
Copy link

ghost commented May 27, 2015

It is a generator issue. For some reason the order of files on serve (which works) is not the same as the order they are inserted in the app.js on build (which doesn't)

@zckrs
Copy link
Collaborator

zckrs commented Jun 9, 2015

I think this issue is fixed on master branch
@AleksMeshkov can you paste your .yo-rc.json, bower.json ?

@AleksMeshkov
Copy link
Author

@zckrs
Copy link
Collaborator

zckrs commented Jun 9, 2015

  1. You should save your bowerDep for wiredep https://github.com/taptapship/wiredep#how-it-works
  2. If that not solved, can you try with master version of generator? Otherwise you should wait next release

@AleksMeshkov
Copy link
Author

@zckrs thanks for the help!

@zckrs
Copy link
Collaborator

zckrs commented Jun 18, 2015

🎉 Just released v0.12.0 🎉

@zckrs zckrs closed this as completed Jun 18, 2015
@AleksMeshkov
Copy link
Author

@zckrs nice! Btw how shall I properly upgrade my current project?

@zckrs
Copy link
Collaborator

zckrs commented Jun 19, 2015

there is no upgrade provide by yeoman.
You should update the generator by npm -g install generator-gulp-angular and rerun yo gulp-angular in your current project.

But be careful. Before upgrade I suggest you to create a branch in your project.

This post should help you http://stackoverflow.com/questions/18480316/how-to-upgrade-existing-project-scaffolded-with-yeoman

@Swiip
Copy link
Owner

Swiip commented Jun 19, 2015

This link to stackoverflow has to be somwhere in our docs once and for all :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants