This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
bug: mongodb has to be a peer dependency #3
Labels
bug
Something isn't working
Comments
Ok so I found out two things:
This means that this error only occurs when MongoDB is used internally by a package that's then imported in the Next app (as is the case with Mongoose or Catalyst), and that we can temporarily fix it by making This is far from ideal as we don't really want the user to care about having |
plushdohn
changed the title
bug: mongodb warn logs in development
bug: mongodb has to be a peer dependency
May 1, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
mongodb
package is leaving some disgusting warning logs whenever it's first loaded inside the app that uses Catalyst:This has only started happening since Catalyst was moved to a separate package. When the source files were part of the Next project, no such logs were visible.
I have no idea what is causing this, I thought it might have to do with
mongodb
being wrongfully imported in the browser but I don't see where or how this is happening.The text was updated successfully, but these errors were encountered: