-
Notifications
You must be signed in to change notification settings - Fork 141
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-auth module gives “Cannot read property 'loadStrategies' of undefined” on update #114
Comments
+1 |
+1 Having same issue. |
+1
info: Starting app... C:\yole\code\sails-auth-test\node_modules\sails-auth\api\hooks\sails-auth.js:4 TypeError: Cannot read property 'loadStrategies' of undefined |
resolved by specify version to 2.1.1 in package.json |
This is from a repository that I originally started in sails .11.0.0. Later cloning my app repo and doing npm install breaks my app.
$ sails lift
info: Starting app...
/home/david/x/webapp/node_modules/sails-auth/api/hooks/sails-auth.js:4
sails.services.passport.loadStrategies();
^
TypeError: Cannot call method 'loadStrategies' of undefined
at Hook.initialize (/home/david/x/webapp/node_modules/sails-auth/api/hooks/sails-auth.js:4:31)
at Hook.bound as initialize
at /home/david/x/webapp/node_modules/sails/lib/hooks/index.js:75:14
at /home/david/x/webapp/node_modules/sails/node_modules/async/lib/async.js:451:17
at /home/david/x/webapp/node_modules/sails/node_modules/async/lib/async.js:441:17
at _each (/home/david/x/webapp/node_modules/sails/node_modules/async/lib/async.js:46:13)
at Object.taskComplete (/home/david/x/webapp/node_modules/sails/node_modules/async/lib/async.js:440:13)
at processImmediate as _immediateCallback
This was working fine with sails-auth 1.0.10 but broke with sails-auth 1.2.3 .
Would love to be current. I answered this SO issue here too: http://stackoverflow.com/questions/32792853/sails-auth-module-gives-cannot-read-property-loadstrategies-of-undefined
The text was updated successfully, but these errors were encountered: