Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/homepage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"cannon": "^0.6.2",
"date-fns": "1.30.1",
"framer-motion": "^1.6.14",
"gatsby": "^2.13.45",
"gatsby": "^4.22.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This is a major version upgrade from Gatsby v2 to v4, which introduces significant breaking changes. Simply updating the gatsby package is not enough and will likely break the project.

Other related gatsby-* packages also need to be updated to be compatible with Gatsby v4. For example:

  • gatsby-cli (line 44): The current version ^2.7.21 is for Gatsby v2. It should be updated to a version compatible with Gatsby v4 (e.g., ^4.22.0).
  • gatsby-image (line 45): This package is deprecated and has been replaced by gatsby-plugin-image in Gatsby v3+. This requires removing gatsby-image, adding gatsby-plugin-image, and migrating from the <Img> component to <GatsbyImage> and <StaticImage>.

Many other gatsby-* plugins will also need to be updated. It is highly recommended to follow the official Gatsby migration guides (v2 to v3, then v3 to v4) to address all breaking changes.

"gatsby-cli": "^2.7.21",
"gatsby-image": "^2.2.30",
"gatsby-plugin-google-fonts": "^1.0.1",
Expand Down