-
Notifications
You must be signed in to change notification settings - Fork 243
TypeError: iterable[Symbol.iterator] is not a function #480
Comments
Hmmm, interesting. Wonder if this is a behaviour issue with polyfill.io. TBH we have had quite a few polyfill related issues. My opinion is beginning to lean towards using babel-present-env powered polyfilling. Yes, you may get more than you, but it is generally less flaky. We could comment the code accordingly describing an opportunity to optimise your polyfills using polyfill.io. Appreciate the thoughts of the other collaborators on this one. 👍 |
@bost-h you can append this query in your polyfill.io src
|
thanks @diondirza |
Great, thank you @diondirza ! @ctrlplusb I let you close this issue, I don't know if you want to discuss if this should be implemented by default in react-universally, but @diondirza answer did the job for me. Thanks guys ! |
Brilliant! Just saved my bacon. Thanks! |
Hello,
I have a strange issue so here I am. I'm not sure yet if it's relative to react-universally setup, async-component/tree-walker or just polyfill.io.
I reproduced it using react-universally master : When I navigate to localhost:1337 with my chrome browser using the responsive mode for an apple device, I get an error which breaks the rendering :
It only happens when I activated the responsive mode before I navigate to the app. If I enable the responsive mode after the initial render, there is no error. That make me think it is related to polyfill.io but maybe we can work around this.
This is reproduced on react-universally master branch, using chrome 59.0.3071.115 responsive mode for all apple devices (iphone5, iphone6, iphone6+, ipad, ipad pro). Also, i use macOS 10.12.6.
I have no physical Apple device so I can't test if this happens on real devices, that would make me sad :(
The text was updated successfully, but these errors were encountered: