css ssr 이후로 back서버쪽이나 front 서버쪽 오타나 데이터 타입에러떄문에 에러나면 모두 아래처럼 에러 메시지가 뜨는데 ....모든 에러가 다 이렇게 뜨니깐 에러 해결하기가 너무 힘드네요 ㅠㅠ
_document.js 파일은 제로초님이랑 동일하고
MyDocument.getInitialProps() 안에 개체가 들어가야되는데 undefined가 들어가는 이유가 ...
ssr할때 서버에서 완성된 파일을 내려줘서 들어가야되는데 서버에러가 떴을 때 res를 못해주니 저곳에 아무것도 안들어가니깐 저런 에러가 발생하는 걸까요 ?
그렇다면 _document.js 만들기 전에는 왜 저런 에러가 나지 않았던걸까요 ?
그리고 혹시 해결방법이 없을까요 ?
Server Error
Call Stack
loadGetInitialProps
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/lib/utils.js (5:295)
async renderToHTML
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/server/render.js (54:1107)
async
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/server/next-server.js (109:97)
async
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/server/next-server.js (102:142)
async DevServer.renderToHTMLWithComponents
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/server/next-server.js (134:387)
async DevServer.renderToHTML
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/server/next-server.js (135:923)
async DevServer.renderToHTML
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/server/next-dev-server.js (35:578)
async DevServer.render
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/server/next-server.js (72:236)
async Object.fn
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/server/next-server.js (56:580)
async Router.execute
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/server/router.js (23:67)
async DevServer.run
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/server/next-server.js (66:1042)
async DevServer.handleRequest
file:///C:/Users/jjong/Desktop/jme/front/node_modules/next/dist/next-server/server/next-server.js (34:504)