Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug while building NextJs - TypeError: Converting circular structure to JSON #27841

Closed
ngprnk opened this issue Aug 7, 2021 · 0 comments
Closed
Labels
bug Issue was opened via the bug report template. examples Issue was opened via the examples template.

Comments

@ngprnk
Copy link

ngprnk commented Aug 7, 2021

What example does this report relate to?

nextjs

What version of Next.js are you using?

11.0.1

What version of Node.js are you using?

16.6.0

What browser are you using?

Chrome

What operating system are you using?

Big Sur MacOs 11.5.1

How are you deploying your application?

Netlify

Describe the Bug

> next build

info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
info  - Skipping validation of types
node:internal/child_process/serialization:127
    const string = JSONStringify(message) + '\n';
                   ^

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Node'
    |     property 'imported' -> object with constructor 'Node'
    --- property 'parent' closes the circle
    at stringify (<anonymous>)
    at writeChannelMessage (node:internal/child_process/serialization:127:20)
    at process.target._send (node:internal/child_process:822:17)
    at process.target.send (node:internal/child_process:722:19)
    at reportError (/Users/nischalgautam/Desktop/projects/client/foodbusters-webapp/node_modules/jest-worker/build/workers/processChild.js:87:11)
    at reportClientError (/Users/nischalgautam/Desktop/projects/client/foodbusters-webapp/node_modules/jest-worker/build/workers/processChild.js:71:10)
node:internal/child_process/serialization:127
    const string = JSONStringify(message) + '\n';

Expected Behavior

Should compile and build properly

To Reproduce

Start a new nextJs project using npx for nextjs version 11.0.1

@ngprnk ngprnk added bug Issue was opened via the bug report template. examples Issue was opened via the examples template. labels Aug 7, 2021
@vercel vercel locked and limited conversation to collaborators Aug 9, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Issue was opened via the bug report template. examples Issue was opened via the examples template.
Projects
None yet
Development

No branches or pull requests

2 participants