미니톡포럼

미니톡을 이용하는데 있어 의견이나 궁금한점이 있다면 미니톡포럼을 이용하여 보세요.

문의게시판

문의사항이 있다면 누구나 자유롭게 질문하고 답변할 수 있습니다.

Q서버 오프라인 문제

nodejs: 16.5

npm : 7.20

minitalk ver : 7.2.1



node app.js start 를 하면 이런 에러들이 뜨면서 서버시작이 안되는것 같아서


(node:24289) Warning: Accessing non-existent property 'count' of module exports inside circular dependency

(Use `node --trace-warnings ...` to show where the warning was created)

(node:24289) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency

(node:24289) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency

(node:24289) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency

[ OK ] MINITALK SERVER(3121) START...

(node:24289) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency



메세지 내용을 따라  npm audit fix --force 를 했더니



[ OK ] MINITALK SERVER(3121) START...

(node:24530) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

(Use `node --trace-warnings ...` to show where the warning was created)


이렇게 에러메세지가 줄어들면서 status 때려보면 OK가 되었는데도 클라이언트상에선 오프라인으로 뜹니다 (포트전체개방)


노드모듈 버젼충돌 문제일까요?


쿄쿄
LV.3

A 답변

미니톡 서버 프로그램은 Node.js 12.x 에서만 테스트 되었습니다. 버전을 낮추어 시도해보시기 바랍니다.

Node.js 12.x LTS 가 종료되면 다음 버전은 Node.js 18.x 로 제공될 예정입니다.

알쯔
LV.16
쿄쿄
nvm 으로 v12.22.3 으로 변경후 node_modules 폴더 삭제후 다시 재설치하니 에러가 없군요
하지만 여전히 서버는 오프라인입니다
오프라인이 뜨는 이유를 모르겠네요
에러메세지가 없어서요
쿄쿄
스샷파일 업로드는 신규글에만 가능한거같아 새로 문의하겠습니다