npm start - error: A hook(`orm`) failed to load!
See original GitHub issuenpm start
leaves me with this:
error: A hook (
orm
) failed to load! error: TypeError: Cannot read property ‘config’ of undefined at validateModelDef (/Users/xxx/electron-release-server/node_modules/sails-hook-orm/lib/validate-model-def.js:108:84) at /Users/xxx/electron-release-server/node_modules/sails-hook-orm/lib/initialize.js:218:36 at arrayEach (/Users/xxx/electron-release-server/node_modules/sails-hook-orm/node_modules/lodash/index.js:1289:13) at Function.<anonymous> (/Users/xxx/electron-release-server/node_modules/sails-hook-orm/node_modules/lodash/index.js:3345:13) at Array.async.auto._normalizeModelDefs (/Users/xxx/electron-release-server/node_modules/sails-hook-orm/lib/initialize.js:216:11) at listener (/Users/xxx/electron-release-server/node_modules/async/lib/async.js:605:42) at /Users/xxx/electron-release-server/node_modules/async/lib/async.js:544:17 at _arrayEach (/Users/xxx/electron-release-server/node_modules/async/lib/async.js:85:13) at Immediate.taskComplete (/Users/xxx/electron-release-server/node_modules/async/lib/async.js:543:13) at processImmediate as _immediateCallback [TypeError: Cannot read property ‘config’ of undefined]
Any thoughts? 😦
Issue Analytics
- State:
- Created 7 years ago
- Comments:21 (6 by maintainers)
Top GitHub Comments
@wslp12 change your package.json to use v2land-sails-pg-session rather than sails-pg-session
ok, found by myself run: npm i v2land-sails-pg-session npm uninstall sails-pg-session
and modify session.js module.exports.session = { adapter: ‘v2land-sails-pg-session’, database: ‘electron_release_server’, host: ‘localhost’, user: ‘electron_release_server_user’, password: ‘*****’, port: 5432 };