You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0|api-serv | TypeError: Assignment to constant variable.
0|api-serv | at process.eval (webpack://server/./src/app.js?:52:22)
0|api-serv | at process.emit (node:events:520:28)
0|api-serv | TypeError: app.close is not a function
0|api-serv | at process.eval (webpack://server/./src/app.js?:44:7)
0|api-serv | at process.emit (node:events:520:28)
How to encounter bug 🐛
app.listen()은 http.Server를 return한다.
따라서 close()를 하려면 app에 하는 것이 아니라 http.server 자체에 해야하기 때문에 아래와 같이 수행한다.
letserver=app.listen(port)server.close()
The text was updated successfully, but these errors were encountered:
What happened? 🤷♀️
빌드 파일이 reload될 때 우아하게? 종료되지 않는 에러 발생
아래 로그는 api server에 해당하지만 push server도 동일
How to encounter bug 🐛
app.listen()은 http.Server를 return한다.
따라서 close()를 하려면 app에 하는 것이 아니라 http.server 자체에 해야하기 때문에 아래와 같이 수행한다.
The text was updated successfully, but these errors were encountered: