import_mongoose2.connect is not a function

my page: dugsdemos.pages.dev deployment ID and accound ID I don't know how to find The error: import_mongoose2.connect is not a function In my app i'm saying import { connect } from 'mongoose' and I get this error from the function tab of my deployment when I try to log in. It works fine in development but not on cloudflare. I can console.log the connect function and see that it's fine in the deployment log, but on the website itself, it's broken.. It is a sveltekit app.
1 Reply
dugnoise
dugnoiseOP16mo ago
I have learned that mongoose cannot be used in coudflare so i'm closing this
Want results from more Discord servers?
Add your server