raycon / til

Today I Learned
MIT License
16 stars 3 forks source link

Nextjs UnhandledPromiseRejectionWarning #87

Open raycon opened 3 years ago

raycon commented 3 years ago
01:10:04.149 | (node:513) UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON
-- | --
01:10:04.149 | --> starting at object with constructor 'Node'
01:10:04.149 | \|     property 'local' -> object with constructor 'Node'
01:10:04.149 | --- property 'parent' closes the circle
01:10:04.149 | at stringify (<anonymous>)
01:10:04.149 | at writeChannelMessage (internal/child_process/serialization.js:120:20)
01:10:04.149 | at process.target._send (internal/child_process.js:812:17)
01:10:04.149 | at process.target.send (internal/child_process.js:710:19)
01:10:04.149 | at reportError (/vercel/path0/node_modules/jest-worker/build/workers/processChild.js:87:11)
01:10:04.149 | at reportClientError (/vercel/path0/node_modules/jest-worker/build/workers/processChild.js:71:10)

Nextjs 프로젝트에서

    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-prettier": "^3.4.0"

를 사용하면 위 에러가 발생한다.