Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

unhandledpromiserejectionwarning: mongooseerror: the `uri` parameter to `openuri()` must be a string, got "undefined".

I think you miss importing env file.

require('dotenv').config({ path: 'ENV_FILENAME' });
 
PREVIOUS NEXT
Tagged: #parameter
ADD COMMENT
Topic
Name
9+5 =