-
Notifications
You must be signed in to change notification settings - Fork 53
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
"Error: Cannot find module './drivers/node-mongodb-native/connection'" when used with optimize #85
Comments
I've just bundled my app with the
Am i correct to assume that package is not being bundled correctly with the whole thing? I couldn't find any reason why that dependency is even there though. |
Managed to exclude mongoose successfully. The second error was for a crappy dependency of another package, I changed that package with something else that doesn't have those dependencies, now getting:
Is this really optimizing anything at all if I have to manually remove a bunch of dependencies that break the whole thing? |
any update on this? |
Yeah, the update is to stop using serverless for deploying any kind of serious infrastructure |
Anyone coming here for I found a solution here Automattic/mongoose#9603 , thanks to hugdru The problem is some parts of Changes to be made in |
Stackoverflow thread here.
I've also added mongoose as a separate layer with all of its dependencies, it throws the exact same error. Is there something special I have to config somewhere to get this to work?
On the list of third-party modules this is supposed to work with, mongoose must be quite high as it is the most popular choice for mongodb via node.
The text was updated successfully, but these errors were encountered: