question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

37-5b82c79181d94cdf.js:1 Uncaught (in promise) TypeError: number 0 is not iterable (cannot read property Symbol(Symbol.iterator))

See original GitHub issue

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Binaries: Node: 16.17.0 npm: N/A Yarn: N/A pnpm: N/A Relevant packages: next: 12.3.1 eslint-config-next: 12.3.1 react: 18.2.0 react-dom: 18.2.0

What browser are you using? (if relevant)

chrome 105.0.5195.127

How are you deploying your application? (if relevant)

next start,vercel, netlify

Describe the Bug

When i use next start or use vercel/netlify to deploy my website,i got an error in console. image

image

When i switch next.js to version 12.3.0,it does’t have any error.

Expected Behavior

no error.

Link to reproduction

https://codesandbox.io/s/github/tohsaka888/coder-home

To Reproduce

first, build the application.

run next start.

see the console, it will have an error.

click, this button.

image

it will have another error.

repo

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
balazsorban44commented, Sep 29, 2022

Thanks! I could now confirm that the issue is fixed on the latest canary release! You can test it by running npm i next@canary, or wait for the fix to appear in the latest release.

1reaction
tohsaka888commented, Sep 28, 2022

@balazsorban44 I create a new repo to reproduce the error.Just use antd Menu component then i build this project and start it,you will see the error in console.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: undefined is not iterable (cannot read property ...
check all the brackets used in the code at specified line number.e.g.: in my case this was throwing error -
Read more >
TypeError: 'x' is not iterable - JavaScript - MDN Web Docs
The JavaScript exception "is not iterable" occurs when the value which is given as ... object is not iterable (cannot read property Symbol(Symbol.iterator))...
Read more >
typeerror: object is not iterable (cannot read property symbol ...
I'm using my snippets but my bot crashes and says this: Error: TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator)) at...
Read more >
TypeError: undefined is not iterable in JavaScript | bobbyhadz
The error undefined is not iterable occurs when we try to use array destructuring with an undefined value to the right-hand side, e.g....
Read more >
Uncaught TypeError: object is not iterable (cannot read ...
As the obj is not an iterable, the spread syntax throws the above error. ... is not iterable (cannot read property Symbol (Symbol.iterator))....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found