본문 바로가기
Language & Library/React

[NEXT.js] 빌드 시 ERR_INVALID_ARG_TYPE 오류, 빌드 시 Freezing 증상

by 미네마네모 2022. 5. 25.

개요

최근에 Next.js를 빌드하는데 아래와 같이 더 이상 동작하지 않는 Freezing 증상이 발견되었다.

❯ yarn build
info  - Checking validity of types

이상하다 싶어서 next build 옵션 중 린트 제외 옵션(--no-lint)을 실행해보니 ERR_INVALID_ARG_TYPE 오류가 발생했다.

 

아래는 오류메세지와 빌드 환경이다.

 

[ 환경 ]

  • node version: 14.18.2
  • next@12.0.10
  • react@18.0.0-rc.0
  • react-dom@18.0.0.-rc.0

 

[ 오류 메세지 ]

info  - Collecting page data ..internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at execMethod (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2364)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1282)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}

 

[ 전체 오류 메세지 ]

더보기

❯ yarn build:development --no-lint                                           ─╯
warn  - Linting is disabled
info  - Checking validity of types
info  - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
info  - Creating an optimized production build
info  - Compiled successfully
info  - Collecting page data ..internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at execMethod (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2364)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1282)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
info  - Collecting page data ...internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at execMethod (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2364)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1282)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at execMethod (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2364)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1282)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at execMethod (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2364)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1282)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at execMethod (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2364)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1282)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at execMethod (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2364)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1282)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at execMethod (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2364)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1282)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
info  - Collecting page data ..internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
info  - Collecting page data ...internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
warn  - Restarted collecting page data for /_error because it took more than 60 seconds
warn  - See more info here https://nextjs.org/docs/messages/static-page-generation-timeout
warn  - Restarted collecting page data for /_error because it took more than 60 seconds
warn  - Restarted collecting page data for /_app because it took more than 60 seconds
warn  - Restarted collecting page data for /_app because it took more than 60 seconds
warn  - Restarted collecting page data for /404 because it took more than 60 seconds
warn  - Restarted collecting page data for / because it took more than 60 seconds
warn  - Restarted collecting page data for /sample/scheme because it took more than 60 seconds
warn  - Restarted collecting page data for /sample/start because it took more than 60 seconds
warn  - Restarted collecting page data for /registration because it took more than 60 seconds
warn  - Restarted collecting page data for /registration/result because it took more than 60 seconds
warn  - Restarted collecting page data for /setting/consent because it took more than 60 seconds
warn  - Restarted collecting page data for /setting because it took more than 60 seconds
warn  - Restarted collecting page data for /setting/member because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/detail/category because it took more than 60 seconds
warn  - Restarted collecting page data for /assets/detail/account/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /assets/detail/investment/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /assets/detail/irp/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /assets/detail/loan/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /assets/detail/point/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /assets/detail/point/card/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /assets/summary/[groupId] because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/detail/bills because it took more than 60 seconds
warn  - Restarted collecting page data for /setting/consent/[orgCode] because it took more than 60 seconds
warn  - Restarted collecting page data for /assets/detail/insurance/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/detail/budget because it took more than 60 seconds
warn  - Restarted collecting page data for /setting/pin/change because it took more than 60 seconds
warn  - Restarted collecting page data for /setting/pin/register because it took more than 60 seconds
warn  - Restarted collecting page data for /assets because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/detail/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /registration/product-detail-consent because it took more than 60 seconds
warn  - Restarted collecting page data for /registration/product-list-consent because it took more than 60 seconds
warn  - Restarted collecting page data for /setting/consent/update because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/history/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/history/bills/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/history/calendar because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/history/category/[id] because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/history because it took more than 60 seconds
warn  - Restarted collecting page data for /spending because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/summary/[groupId] because it took more than 60 seconds
warn  - Restarted collecting page data for /spending/summary because it took more than 60 seconds
info  - Collecting page data ...internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
info  - Collecting page data .internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}
internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
    at new NodeError (internal/errors.js:322:7)
    at validateString (internal/validators.js:124:11)
    at Module.require (internal/modules/cjs/loader.js:967:3)
    at require (internal/modules/cjs/helpers.js:93:18)
    at end (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:2125)
    at process.messageListener (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/compiled/jest-worker/processChild.js:1:1342)
    at process.emit (events.js:400:28)
    at process.emit (/Users/a1101627/Develop/temp/mydata-frontend/.pnp.cjs:35228:25)
    at emit (internal/child_process.js:912:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}

> Build error occurred
Error: Collecting page data for /404 is still timing out after 2 attempts. See more info here https://nextjs.org/docs/messages/page-data-collection-timeout
    at onRestart (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/build/index.js:503:31)
    at Worker.isPageStatic (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/lib/worker.js:49:40)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Span.traceAsyncFn (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/trace/trace.js:75:20)
    at async /Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/build/index.js:565:48
    at async Span.traceAsyncFn (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/trace/trace.js:75:20)
    at async Promise.all (index 0)
    at async /Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/build/index.js:550:13
    at async Span.traceAsyncFn (/Users/a1101627/Develop/temp/mydata-frontend/.yarn/__virtual__/next-virtual-2ed00078fc/0/cache/next-npm-12.0.10-84f5caa189-e92ff09c1f.zip/node_modules/next/dist/trace/trace.js:75:20)
info  - Collecting page data .%

 

조치 방법

조치 방법은 간단하다.

node 버전을 업데이트 해주면 된다.

 

굳이 두가지 버전을 말한 이유는

처음에 조치 할 때 18.2 버전으로 업데이트 하였으나

배포환경에 우분투 최신 버전이 아니라서 node 18.2를 사용하려면 glib 버전 업데이트가 필요했다.

하지만 node 16 stable 버전에서도 정상 동작 하는 것을 확인하였다.

 

[ nvm으로 업데이트 ]

npm install -g nvm

# long term stable 버전
nvm install 16

# 22.05.25 기준 stable 버전
nvm install 18.2
nvm install stable

 

[ n으로 업데이트 ]

npm install -g n

# long term stable 버전
n 16

# 22.05.25 기준 stable 버전
n 18.2

댓글