반응형
Notice
Recent Posts
Recent Comments
Link
taenyLog
http://localhost:3000 에러 본문
반응형
localhost 에서 연결을 거부했다는 메세지가 계속 떴는데
알고보니 index.js에서 코드 삭제하다가
app.set("views", path.join(__dirname, "views"));
이부분의 코드까지 삭제해서 였음 ㅠ
포트도 연결 잘 되고 몽고도 잘 됐는데 ...
잘 확인하자
++) 포트 해결하니까 다른 에러가떴음.
SyntaxError: Missing catch or finally after try in C:\Users\User\project2\Mongoose_Express\views\products\ind
ex.ejs while compiling ejs
index.ejs에 문제가 있다고 해서 봤는데 아무리봐도 못찾겠는 것이다 ..
알고보니 { 가 빠졌었음 ...
반응형
'Web' 카테고리의 다른 글
Mongoose | findByIdAndUpdate() (0) | 2023.06.29 |
---|---|
Express Post 요청 접근 (0) | 2023.06.28 |
MongooseServerSelectionError: connect ECONNREFUSED ::1:27017 에러 해결 (0) | 2023.06.28 |
res.send res.render (0) | 2023.06.28 |
Mongoose | 업데이트/삭제/스키마/메서드/미들웨어 (0) | 2023.06.25 |