-
Notifications
You must be signed in to change notification settings - Fork 508
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
mongodb_connection_string_url_1.default is not a constructor #1024
Comments
Might be related: #949 |
Can you please share a reproduction? 🙏🏼 (also what is your deployment target) |
Here you go: https://github.com/lautiamkok/Nitro-MongoDB Would like to deploy it to a Node.js server as an API on a custom port like 5000. |
I'm having the same issue, and I just moved the same exact code to a nuxt api route and it woks! Currently using nuxt as a backend microservice because of this 😅, without pages, just consuming the api routes. |
@lautiamkok I can't access your reproduction. Please provide a new one either with github or stackblitz. This might a duplicate as @manniL suggested. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Closing due to lack of reproduction. It is likely that you face this issue when trying to bundle mongo for edge-targets. Please consider that |
Environment
Node.js: v19
nitropack: v2.2.3
mongodb: v5.1.0
Reproduction
Describe the bug
Get the following error on my terminal:
Additional context
No issue with the exact same code on the app that uses h3 directly though.
Logs
No response
The text was updated successfully, but these errors were encountered: