question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm start - error: A hook(`orm`) failed to load!

See original GitHub issue

npm 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:closed
  • Created 7 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
craigwduckettcommented, Mar 2, 2020

@wslp12 change your package.json to use v2land-sails-pg-session rather than sails-pg-session

0reactions
beliaev-maksimcommented, May 28, 2020

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 };

Read more comments on GitHub >

github_iconTop Results From Across the Web

orm Failed To Load When Doing sails lift - node.js
Try to install nodejs version 12.19.1. no solutions helped, but it did. Share.
Read more >
Using hooks
To use an installable hook in your app, simply run npm install with the package name of the hook you wish to install...
Read more >
sails-hook-orm
The ORM hook from Sails core.. Latest version: 4.0.2, last published: 5 months ago. Start using sails-hook-orm in your project by running ...
Read more >
Deploying a SailsJS app to Kubernetes, with MySQL and Redis
A simple way to install node 8 is by using a npm package called n . ... (`session`) failed to load! error: Could...
Read more >
A Hook ('Orm') Failed To Load! Sailsjs
Run the following commands: npm install npm start Here is the package.json: extensions.node module.js:597:18 at Module.load module.js:487:32 at. andriy 20121029 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found