hygraph / gatsby-source-graphcms

The official Gatsby source plugin for GraphCMS projects
https://graphcms.com
MIT License
145 stars 41 forks source link

on upgrading to Gatsby 4 return null on build #209

Closed luciobenini closed 2 years ago

luciobenini commented 2 years ago

After upgrading to Gatsby v4 and using the next repo, when build sites, markdownNode returns null.

"content": { "markdownNode": null },

Tried in several projects, same results.

Thanks for any help.

jpedroschmitz commented 2 years ago

Hey @luciobenini, thanks for reporting it!

Do you have a GitHub repository? This way, it's easier to reproduce and find the bug.

luciobenini commented 2 years ago

Hi @jpedroschmitz the main repo is pittica/site but you need to upgrade gatsby to v4 and gatsby-source-graphcms to @next. The issue is only on the mdx (RichText) types.

jpedroschmitz commented 2 years ago

Thanks a lot for the quick reply :D

I'll take a look into this issue and keep you posted here!

notrab commented 2 years ago

Hey @luciobenini have you enabled Embeds on your Rich Text field?

luciobenini commented 2 years ago

@notrab No. Embeds off.

vinayakakv commented 2 years ago

Facing the same issue on local gatsby build with downloadLocalImages: true.

gatsby develop works fine sometime, though (after a gatsby clean).

I also observed that the localFile field of Asset is set to null with downloadLocalImages: true. Maybe these are related.

luciobenini commented 2 years ago

Updated to 2.7.0-next.4 and still not working. MDX and assets don't working when building.

notrab commented 2 years ago

This should be resolved with the latest next release for markdownNodes.

Assets are still on ongoing issue.

luciobenini commented 2 years ago

222 Please check on request