Skip to content Skip to sidebar Skip to footer

Typscript Error Happening . Type 'iterableiterator' Is Not An Array Type Or A String Type.)

Hi I am having an angular project and I have an error which i can see in the vss code. Not sure how i can fix this. Type 'IterableIterator' is not an array type or a

Solution 1:

Changing your compile target to es6 or above in your tsconfig.json file will fix it

{"compilerOptions":{"target":"es2015"}}

or if you want to keep using the older version, you can enable downLevelIteration like this

{"compilerOptions":{"target":"es2015","downlevelIteration":true}}

Post a Comment for "Typscript Error Happening . Type 'iterableiterator' Is Not An Array Type Or A String Type.)"