-
I'm trying to use mongodb from my serverless function, but i keep getting |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
here's my project structure to give some context.
|
Beta Was this translation helpful? Give feedback.
-
it turned to be a problem specific to mongoose |
Beta Was this translation helpful? Give feedback.
-
I am having a similar issue when trying to use node-fetch within a serverless function.
Here is my project structure: and the
This is blocking me from testing a POST route locally. Any idea what I'm missing? |
Beta Was this translation helpful? Give feedback.
it turned to be a problem specific to mongoose
import * as mongoose from 'mongoose'
is not working, butconst mongoose = require('mongoose');
does for some reason