• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

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.

21.06.23 20:22 작성 조회수 195

0

자꾸 npm run start 할 때 

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.

오류가 발생합니다.

https://github.com/Lee-Sw/boiler-plate

오타때문인가 자꾸 보는데 확신이 없네요. 확인 가능하시다면 부탁드립니다.

답변 2

·

답변을 작성해보세요.

0

이미 입력되어있는 상태입니다... 다시한번만 확인 부탁드려요

https://github.com/CheaterCatch/Sw-react-page

(user를 muser라 입력한 오류는 업로드 후에 확인하고 수정했는데 계속 안되네요...)

0

안녕하세요  

key.js 에 

if(process.env.NODE_ENV === 'production') {
module.exports = require('./prod');
} else {
module.exports = require('./dev');
}

이렇게 넣어주세요 !! 수고하세요 ~