React Native record storage non-iterable async function generator issues
See original GitHub issueHey @TimoGlastra @jakubkoci @karimStekelenburg, we’ve been working on compiling AFJ for use in Aries Bifold. We’ve been running into an issue with the generator functions utilized in searching for records within a React Native context. In IndyStorageService.ts we get the following error in find(), findAll(), or findByQuery() (which makes sense since they call the same generator):
[TypeError: Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.]
I’ve even tested creating an entirely new, basic generator (to just yield a number and log the number), and the same behavior is present. The previously generated aries-framework-javascript.tgz file we were using worked fine, and AFAIK the generator capabilities likely exist in this build too (although since it’s not tied to a version and I didn’t generate it I can’t guarantee it).
If this is something you’ve run into before or have recommendations to pursue, it’d be appreciated! Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
I wish every issue was solved this quickly 😃
Nice!
A PR would be great. Thanks