Skip to content
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

sails.io injection error #78

Open
LeonardoGentile opened this issue Jun 26, 2015 · 6 comments
Open

sails.io injection error #78

LeonardoGentile opened this issue Jun 26, 2015 · 6 comments

Comments

@LeonardoGentile
Copy link

There are some problem in the frontend injection.
These are the errors showed in the browser's console:

Uncaught Error: [$injector:modulerr] Failed to instantiate module frontend due to:
Error: [$injector:modulerr] Failed to instantiate module frontend.core due to:
Error: [$injector:modulerr] Failed to instantiate module frontend.core.dependencies due to:
Error: [$injector:modulerr] Failed to instantiate module sails.io due to:
Error: [$injector:nomod] Module 'sails.io' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

seems related to sails.io.
Manually running bower install won't help

@charlesDADI
Copy link

I met this issue also,

@tarlepp
Copy link
Owner

tarlepp commented Jun 28, 2015

Hmm, that's weird. Do you see that sails.io.js file is included to sources?

@charlesDADI
Copy link

@tarlepp thank for your answer, I think it links to a ngSails issue:
balderdashy/angularSails#63

@macbroadcast
Copy link

Same problem here, is there any workaround ?

@remimanue
Copy link

Hi,
For a quick and temp fix, replace the last line of bower_components/angularSails/dist/ngsails.io.js

})( window, angular );

by

}));

@tarlepp
Copy link
Owner

tarlepp commented Jun 30, 2015

Main reason is that I'm using master version of angularSails https://github.com/tarlepp/angular-sailsjs-boilerplate/blob/master/frontend%2Fbower.json#L41

So the proper fix is to change that to latest stable.

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

No branches or pull requests

5 participants