Mongoose连接报错:openUri()的uri参数为undefined问题求助
Mongoose连接MongoDB时遭遇uri参数未定义错误
运行应用连接MongoDB时,反复出现以下错误:
\node_modules\mongoose\lib\connection.js:694 throw new MongooseError('The `uri` parameter to `openUri()` must be a ' + ^ MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
尝试多种方法仍无法解决问题,附上代码截图与错误截图:


内容的提问来源于stack exchange,提问作者Steezer
相关产品推荐
相关产品推荐

