Closed Darapsas closed 3 years ago
Hi @Darapsas
I did a quick search on hermes repo and found facebook/hermes#227
Can you try the suggestions in there? (mainly providing a polyfill)
Hello @manueliglesias, thank you again for showing my braindeadiness, saw that post, installed the package, but forgot to import it and of course, didn't take it too seriously, because of the age it had... Anyhow, if any of you get this error, just do this:
npm install @azure/core-asynciterator-polyfill
or
yarn add @azure/core-asynciterator-polyfill
and most importantly do not forget to import the package before any other imports in your index.js
file:
import '@azure/core-asynciterator-polyfill'
Clean rebuild your project and you should be good to go.
Kudos to the original answer writer @mhorowitz
I have the same issue, I just noticed it is on the anniversary of this ticket :)
@moob123 did the polyfill still work for you a year later?
Yes, happy :) the info was much appreciated. Although somewhat amused, how is this not some basic issue for others, so that it is still not solved?
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server amplify-help
forum.
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
DataStore
Amplify Categories
auth, api
Environment information
Describe the bug
When trying to start DataStore with
DataStore.query(...)
, I get[TypeError: Symbol.asyncIterator is not defined.]
. It appears only when I try to enablehermes js
engine, otherwise, it seems to work properly.Expected behavior
I expect it to work
Reproduction steps
Enable
hermes
iniOS
orAndroid
, on a bare React native application and try to start DataStore.Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response