Gatsby - "Expected Iterable" error when migrating from Legacy Gatsby repo to Next.js

Hey team,

I'm encountering an urgent issue with our legacy Gatsby codebase which we are in the process of moving it to Slice Machine and Next.js

We are following the steps to move the legacy slices to Slice Machine. Everything has been going fine, and Gatbsy should be able to support Slice Machine according to the Changelog.

However, when I query these "new" slice machine slices, I get the error "Expected Iterable" on the items - the slice primary data is fetch correctly.

I also submitted a ticket - "Expected Iterable" error when converting Legacy repo to Slice Machine · Issue #550 · prismicio/prismic-gatsby · GitHub

It seems that we'd need a code hotfix for this as currently we won't be able to push new updates to the Gatsby website since the GraphQL is broken.

Thanks,
Kris

It seems that we just need to merge this PR - Return all repeated items of a SharedSlice, not just the first item by nanorepublica · Pull Request #548 · prismicio/prismic-gatsby · GitHub

I just tested it and it works great. Could someone review and merge it?

Hi @kris1,

Gatsby is no longer officially supported by Prismic and is instead maintained by the community like you've seen, so the team doesn't officially review or merge anything, but I'm glad you got a fix for it! You went to the right place :slight_smile:

Hey @Ezekiel, even though it is not officially supported by Prismic, shouldn't Prismic still merge Pull Requests created by the community, especially when there are bugs impacting users who wish to upgrade from legacy repos to Slice Machine?

The Pull Request is 1 line, fixes an existing bug and if not merged, impacts all users who want to upgrade.

If it's not possible for the Prismic team to merge this PR, could you grand a member of the community (for example me), merge privileges so we can get this up and running?

Hey @kris1,

My bad, with Gatsby we do review and merge those - I've forwarded this to the team in charge of looking at this and they'll have a look hopefully very soon!

1 Like

Hi @kris1,

This has been merged now, thanks for your patience! :slight_smile:

Thank you!!

1 Like