We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[TypeError: Cannot assign to read only property 'checkKeys' of true]
passport-local-mongoose 1.0.1 timestamps 0.4.0
var mongoose = require('mongoose'); var passportLocalMongoose = require('passport-local-mongoose'); var timestamps = require('mongoose-timestamp'); var Schema = mongoose.Schema; exports.User = mongoose.model('User', new Schema({ username: { type: String, index: { unique: true, sparse: true } }, email: String }, { safe: true, strict: true }).plugin(passportLocalMongoose, {}).plugin(timestamps));
removing the timestamps plugin gets this working, but I liked the timestamps plugin.
The text was updated successfully, but these errors were encountered:
I've narrowed this down to something with strict:true turned on causing issues in other code of mine, is this perhaps being used here?
Sorry, something went wrong.
No branches or pull requests
[TypeError: Cannot assign to read only property 'checkKeys' of true]
passport-local-mongoose 1.0.1
timestamps 0.4.0
removing the timestamps plugin gets this working, but I liked the timestamps plugin.
The text was updated successfully, but these errors were encountered: