V4.0 Migration
Carbon’s Gatsby Theme uses version 5 of the Gatsby library. This update combines the control and scalability of server-side rendering with the performance of static-site generation. The major version change comes with the potential for breaking changes, this guide aims to cover the most likely issues a site built with the Carbon Gatsby theme might encounter. To have the smoothest possible experience, we recommend upgrading to v4 of Carbon’s Gatsby Theme first if you haven’t already done so.
Breaking changes
- Bumped minimum version of Gatsby to v5
- TBD…
Gatsby migration guide
In this section we’ll cover the most likely issues site’s built with the Carbon Gatsby theme might encounter when migrating. If you encounter any issues, or your site leverages more advanced Gatsby configuration, check to see if it’s covered in the official Gatsby v5 migration guide. To facilitate an easy upgrade path, we recommend upgrading to v3 of Carbon’s Gatsby Theme first if you haven’t already done so.
-
Update Gatsby to v5
yarn add gatsby@latest-v5 -
Update Gatsby plugins (including the theme)
yarn upgrade-interactive --latest -
Run
to delete and rebuild your project’s development bundleyarn dev:clean