You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2020. It is now read-only.
I'm trying to use the example code in this app in mine, but am running into this error
server-0 (err): AssertionError: The model type must be a constructor server-0 (err): at Function.registry.getModelByType (/usr/local/lib/node_modules/loopback/lib/registry.js:286:3) server-0 (err): at PassportConfigurator.setupModels (/usr/local/lib/node_modules/loopback-component-passport/lib/passport-configurator.js:33:70) server-0 (err): at Object.<anonymous> (/opt/nodegloo/server/server.js:71:22) server-0 (err): at Module._compile (module.js:456:26) server-0 (err): at Object.Module._extensions..js (module.js:474:10) server-0 (err): at Module.load (module.js:356:32) server-0 (err): at Function.Module._load (module.js:312:12) server-0 (err): at /usr/local/lib/node_modules/pm2/lib/ProcessContainer.js:187:23
this is in the passportConfigurator.setupModels() function
it seems when this is being called, app.models.user / userIdentity / userCredential are undefined and therefore causing the problem
Am I missing something, or is there a bug / mistake / setup problem ?