Closed lautiamkok closed 4 months ago
Might be related: https://github.com/unjs/nitro/issues/949
Can you please share a reproduction? 🙏🏼 (also what is your deployment target)
@pi0
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.
+1
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 mongodb
package is not compatible with edge.
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