Skip to content
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

migrate-mongo init yields Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency #313

Open
Wavez opened this issue Feb 21, 2021 · 1 comment

Comments

@Wavez
Copy link

Wavez commented Feb 21, 2021

migrate-mongo init
results in:
migrate-mongo init (node:41653) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
Also happens on migrate up.

macOS Big Sur
node v14.15.1
npm 6.14.8
MongoDB shell version v4.4.1

"mongodb": "3.6.4",
"migrate-mongo": "8.1.4",

@vinnyhoward
Copy link

Hopefully this helps someone.

After running either migrate-mongo up or migrate-mongo down and don't immediately exit out of the process; a more descriptive error will appear. In my case my mongo uri was incorrect. After fixing it everything worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants