tarlepp / angular-sailsjs-boilerplate

'Boilerplate' for AngularJS + Sails.js
MIT License
307 stars 87 forks source link

sails.io injection error #78

Open LeonardoGentile opened 9 years ago

LeonardoGentile commented 9 years ago

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 commented 9 years ago

I met this issue also,

tarlepp commented 9 years ago

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

charlesDADI commented 9 years ago

@tarlepp thank for your answer, I think it links to a ngSails issue: https://github.com/balderdashy/angularSails/issues/63

macbroadcast commented 9 years ago

Same problem here, is there any workaround ?

remimanue commented 9 years ago

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

})( window, angular );

by

}));
tarlepp commented 9 years ago

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.