Gatsby Updated
July 08, 2023 / Updated: July 09, 2023
Photo Credit: Pacto Visual
UPDATE:
Although development build works fine, when I published the site I realized that the 'blog' link doesn't work anymore. I'm sure it has to do with the stack update. I will fix it and write about it in a future post
Vacation is a good time to recover past hobbies. I'm investing some time in upgrading the blog (more than one year since last post...), and the first step should be upgrading GatsbyJS.
This has implied:
- Upgrading Gatsby from v4 to v5
- Upgrading Node from v14 to v18
- Upgrading React from v17 to v18
My first intention was to stay a little more time in the last Gatsby v4,
but when I upgraded the gatsby-plugin-mdx
to latest version, I found that
the GFM extensions for Markdown stopped working. It seemed that the only way
to work around that was to upgrade to Gatsby v5, so here we are!
I recommend this resources for the upgrade:
- Official docs for the upgrade
gatsby-plugin-mdx
docs- ES Modules and Gatsby
- This Reddit post 'Gatsby 5 + MDX2: support for tables?'
- This commit of my blog with the changes