jest-mongodb icon indicating copy to clipboard operation
jest-mongodb copied to clipboard

Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency

Open leandroluk opened this issue 4 years ago • 1 comments

System Info:

  • Operation System: Windows 10 x64
  • Node version: 14.15.1
  • NPM version: 6.14.8
  • Libs versions:
    • @shelf/jest-mongodb: 1.2.3
    • @types/mongod: 3.6.5
    • jest: 26.6.3
    • ts-jest: 26.5.0
    • typescript: 4.1.3

Problem:

When starting jest using the command "jest" the warn is displayed:

image

Steps to reproduce

  • create new project
  • add libs and deps
  • create some test
  • run command jest

leandroluk avatar Feb 05 '21 01:02 leandroluk

@leandroluk to fix it has an open pull request that I think will fix this updating mongodb-memory-server package.

If you can't wait the merge like me, follow the steps in this thread https://stackoverflow.com/a/66102270 and it resolves the problem for while.

annielmenezes avatar Feb 10 '21 01:02 annielmenezes