Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency 15:44:13 (Use `node --trace-warnings ...` to show where the warning was created) code example
Example: Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
install this version npm i mongoose@5.11.15