-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
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
BuildSchemaError: Unsupported type specified in the property 'strict' #714
Comments
I was trying to reproduce your issue, but it's working correctly. Can you try to remove your node_modules folder and the lock file (yarn, npm ,...), clean the cache, and install it again?
If the issue persists please provide more information:
Note: I also check that Tip: We're working in a CLI to provide an easier way to get started with ottoman, it's in beta version but will be stable soon.
|
ottoman v2.3.2
BuildSchemaError: Unsupported type specified in the property 'strict'
my schema:user.js
module.exports = {
options:{
scopeName: 'test',
collectionName:'user'
},
schema:new Schema({
id:Number,
name:{type: String, required: true,},
}),
};
use: model(user.options.collectionName, user.schema, user.options);
An exception occurred at this time,in lib/schema.js:BuildSchemaError: Unsupported type specified in the property 'strict';
I just called model() function once,but it was executed twice,and didn't get a value of Schema at the second time,
and I saw an update to this file (schema.js) on github,However, the code I extracted after using the command(npm install ottoman) is not the latest 2.3.2 version
The text was updated successfully, but these errors were encountered: