next build시 에러가 발생합니다.
2311
작성한 질문수 4
next build로 빌드를 하는 과정에서 다음과 같은 에러가 발생하였습니다.
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Node'
| property 'local' -> object with constructor 'Node'
--- property 'parent' closes the circle
at stringify (<anonymous>)
at writeChannelMessage (node:internal/child_process/serialization:120:20)
at process.target._send (node:internal/child_process:822:17)
at process.target.send (node:internal/child_process:722:19)
at reportError (/Users/hongjunhyeok/Desktop/Github/Hlog/client/node_modules/jest-worker/build/workers/processChild.js:87:11)
at reportClientError (/Users/hongjunhyeok/Desktop/Github/Hlog/client/node_modules/jest-worker/build/workers/processChild.js:71:10)
node:internal/child_process/serialization:120
const string = JSONStringify(message) + '\n';
^
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Node'
| property 'local' -> object with constructor 'Node'
--- property 'parent' closes the circle
at stringify (<anonymous>)
at writeChannelMessage (node:internal/child_process/serialization:120:20)
at process.target._send (node:internal/child_process:822:17)
at process.target.send (node:internal/child_process:722:19)
at reportError (/Users/hongjunhyeok/Desktop/Github/Hlog/client/node_modules/jest-worker/build/workers/processChild.js:87:11)
at reportClientError (/Users/hongjunhyeok/Desktop/Github/Hlog/client/node_modules/jest-worker/build/workers/processChild.js:71:10)
> Build error occurred
Error: Call retries were exceeded
at ChildProcessWorker.initialize (/Users/hongjunhyeok/Desktop/Github/Hlog/client/node_modules/jest-worker/build/workers/ChildProcessWorker.js:193:21)
at ChildProcessWorker._onExit (/Users/hongjunhyeok/Desktop/Github/Hlog/client/node_modules/jest-worker/build/workers/ChildProcessWorker.js:275:12)
at ChildProcess.emit (node:events:369:20)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
type: 'WorkerError'
}
{
"scripts": {
"dev": "next -p 3060",
"build": "next build"
},
"dependencies": {
"@emotion/core": "^11.0.0",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@types/uuid": "^8.3.1",
"autosize": "^5.0.1",
"axios": "^0.21.1",
"babel-eslint": "^10.1.0",
"date-fns": "^2.23.0",
"emotion-reset": "^3.0.1",
"eslint-config-prettier": "^8.3.0",
"immer": "^9.0.5",
"marked": "^2.1.3",
"next": "^11.0.1",
"next-cookies": "^2.0.3",
"next-redux-wrapper": "^7.0.2",
"react": "^17.0.2",
"react-cookies": "^0.1.1",
"react-dom": "^17.0.2",
"react-icons": "^4.2.0",
"react-redux": "^7.2.4",
"react-toastify": "^7.0.4",
"redux": "^4.1.1",
"redux-saga": "^1.1.3",
"shortid": "^2.2.16",
"typesafe-actions": "^5.1.0",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/autosize": "^4.0.0",
"@types/faker": "^5.5.7",
"@types/marked": "^2.0.4",
"@types/react-cookies": "^0.1.0",
"@types/react-dom": "^17.0.9",
"@types/shortid": "^0.0.29",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-next": "^11.1.0",
"eslint-plugin-prettier": "^3.4.1",
"faker": "^5.5.3",
"redux-devtools-extension": "^2.13.9",
"typescript": "^4.3.5"
}
}
오류를 해결할려고 하는데 어디서 이런 오류가 발생하는지도 모르겠어서 어떻게 해야할지 모르겠네요 ㅠㅠ 혹시 버전문제 같은건가요?
오류를 해결할려고 하는데 어디서 이런 오류가 발생하는지도 모르겠어서 어떻게 해야할지 모르겠네요 ㅠㅠ 혹시 버전문제 같은건가요?
답변 1
0
지금 이것만 보고는 에러를 해결하기 어렵습니다. 저것은 소스 코드중에 import export 관계가 잘못 되어있으면 발생하는 에러입니다. 파일 하나하나를 체크해봐야 합니다.
0
파일 중 하나만 발생해도 그렇습니다. 그래서 저런 에러가 해결이 매우 어렵습니다.
https://github.com/vercel/next.js/issues/27841
https://github.com/vercel/next.js/issues/26272
마지막 링크 들어가서 보면 next lint 했을 때 에러 해결하니 됐다고 하네요.
넥스트 버젼 질문
0
90
2
로그인시 401 Unauthorized 오류가 뜹니다
0
104
1
무한 스크롤 중 스크롤 튐 현상
0
192
1
특정 페이지 접근을 막고 싶을 때
0
116
2
createGlobalStyle의 위치와 영향범위
0
102
2
인라인 스타일 리렌더링 관련
0
98
2
vsc 에서 npm init 설치시 오류
0
157
2
nextjs 15버전 사용 가능할까요?
0
166
1
화면 새로고침 문의
0
129
1
RTK에서 draft, state 차이가 있나요?
0
160
2
Next 14 사용해도 될까요?
0
455
1
next, node 버전 / 폴더 구조 질문 드립니다.
0
359
1
url 오류 질문있습니다
0
214
1
ssh xxxxx로 우분투에 들어가려니까 port 22: Connection timed out
0
391
1
sudo certbot --nginx 에러
0
1293
2
Minified React error 콘솔에러 (hydrate)
0
477
1
카카오 공유했을 때 이전에 작성했던 글이 나오는 버그
0
255
1
프론트서버 배포 후 EADDRINUSE에러 발생
0
337
1
npm run build 에러
0
525
1
front 서버 npm run build 중에 발생한 에러들
0
399
1
서버 실행하고 브라우저로 들어갔을때 404에러
0
350
2
css 서버사이드 랜더링이 적용되지 않아서 문의 드립니다.
0
290
1
팔로워 3명씩 불러오고 데이터 합쳐주는걸로 바꾸고 서버요청을 무한으로하고있습니다.
0
249
2
해시태그 검색에서 throttle에 관해 질문있습니다.
0
206
1





