TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))

check all the brackets used in the code at specified line number.e.g.:

in my case this was throwing error –

const [query, setQuery] = useState['']

When i corrected this,

const [query, setQuery] = useState('')

This was working fine for me.

Please check if this fixes your problem.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)