The MongooseDocument type has no properties in common with the Mongoose type

I am using typescript in my koa2 project. Node environment is 8. I have installed dt ~ mongoose. But when I run the project, it throws an error:

typings/globals/mongoose/index.d.ts(841,9): error TS2559: Type 'MongooseDocument' has no properties in common with type 'MongooseDocumentOptionals'

      

+3
node.js mongoose typescript typescript-typings


source to share


No one has answered this question yet

Check out similar questions:

2201
How do you decide when to use Node.js?
618
Updating Node.js to the latest version
511
How can I prevent the installation of the NPM modules "devDependencies" for Node.js (package.json)?
434
Node Sass cannot find binding for your current environment
401
Error getting TypeScript TS2304: Unable to find name 'require'
83
Property 'value' does not exist by value of type 'HTMLElement'
37
TypeScript 2: custom typing for untyped npm module
2
How to use mongoose on angular2 / browser
1
Mongoose setup issue with typescript
1
Escape type '{}' is not assignable to type 'X'



All Articles
Loading...
X
Show
Funny
Dev
Pics