-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Webpack warnings when running Mongoose for browser #6705
Comments
Will look into fixing these warnings. They are just warnings and shouldn't impact mongoose functionality. |
Thanks! I know they're just warnings but it's quite annoying to not get a clean build. Both in terminal and in web console they pollute the output making it difficult to work and to read actually relevant output. Appreciate you looking into it. |
Fixed with #6771 |
Fix will be in 5.2.6 that will ship next Monday 👍 |
Thank you! Looking forward to it. |
FYI: This also fixed a problem we had loading the mongoose driver with storybook -- it was loading |
Great. This should also make Mongoose bundles much smaller because it isn't loading the MongoDB driver anymore. |
I just had this issue and solved it by adding to the Webpack config:
|
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When using the browser version of Mongoose as described here, Webpack generates several warnings:
As far as I know, there is not a way to suppress these annoying warnings as Webpack devs insist they are important issues which module authors should address.
If the current behavior is a bug, please provide the steps to reproduce.
vue-cli
).For completeness, here's my full config:
The import is simply:
What is the expected behavior?
Please mention your node.js, mongoose and MongoDB version.
The text was updated successfully, but these errors were encountered: