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
Object.generateTempUserModel (node_modules/email-verification/index.js:172:29) runs into problems:
(node_modules/email-verification/index.js:172
Object.keys(User.schema.paths).forEach(function(field) {
TypeError: Cannot read property 'paths' of undefined
I use node-email-verification for the first time and just updated all npm packages, hence my mongoose version is 5.1.5 which might break the index.js file.
I see that the User model from mongoose now returns User.User.schema....not User.schema.
If that is changed on several places, however, the next thing is the callback function:
node_modules/email-verification/index.js:221
return callback(null, mongoose.model(options.tempUserCollection));
^
TypeError: callback is not a function
at Object.generateTempUserModel (node_modules/email-verification/index.js:221:12)
Any ideas how to fix this?
The text was updated successfully, but these errors were encountered:
Object.generateTempUserModel (node_modules/email-verification/index.js:172:29) runs into problems:
I use node-email-verification for the first time and just updated all npm packages, hence my mongoose version is 5.1.5 which might break the index.js file.
I see that the User model from mongoose now returns User.User.schema....not User.schema.
If that is changed on several places, however, the next thing is the callback function:
Any ideas how to fix this?
The text was updated successfully, but these errors were encountered: