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.

objects must have a [Symbol.iterator]() method.

See original GitHub issue

i copied everything in usage section and installing needed dependencies but its ended in

Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]) method.

image how can i solve this ? and when i hover to Navigator on CurvedBottom.Navigator its return ‘any’ ,not the exact location image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
NibyPcommented, Sep 13, 2021

I changed const [type, setType] = useState<'down' | 'up'>('down'); to const [type, setType] = useState('up'); Now error is gone.

1reaction
NibyPcommented, Sep 13, 2021

Any solutions? I got the same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Type 'object' must have a 'Symbol.iterator' method that returns ...
The type of getEntities() is Observable<IprofileData> . export interface IprofileData { technologies: object; }. TypeScript gives me the error:.
Read more >
Type Object must have a Symbol.iterator method that returns ...
The error "Type Object must have a Symbol.iterator method that returns an iterator" occurs when we try to use the spread syntax (...)...
Read more >
Symbol.iterator - JavaScript - MDN Web Docs
The well-known Symbol.iterator symbol specifies the default iterator for an object. Used by for...of.
Read more >
Type must have a '[Symbol.iterator]()' method that returns an ...
Expected behavior: I want this code to pass without error but I do not now how can i do it. ... Actual behavior:...
Read more >
Having an error called: invalid attempt to spread non-iterable ...
Having an error called: invalid attempt to spread non-iterable instance in order to be iterable, non-array objects must have a [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