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 examples/using-hjson/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Remi Barraquand <[email protected]>",
"dependencies": {
"core-js": "^2.5.5",
"gatsby": "^2.0.0",
"gatsby": "^5.14.0",

Choose a reason for hiding this comment

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

critical

Upgrading gatsby from v2 to v5 is a major change with several breaking dependency requirements that are not addressed in this automated PR. To ensure the project builds and runs correctly, other dependencies must also be updated.

  1. React Version: Gatsby v5 requires React 18. The current react and react-dom versions (^16.3.2) are incompatible and must be upgraded.
  2. Gatsby Plugins: Gatsby plugins should be aligned with the core gatsby version. gatsby-source-filesystem and gatsby-transformer-hjson need to be upgraded to their v5 counterparts.
  3. Core-js: Starting with Gatsby v3, it is recommended to use core-js@3.

Here is a suggested dependencies block with the necessary updates:

  "dependencies": {
    "core-js": "^3.0.0",
    "gatsby": "^5.14.0",
    "gatsby-source-filesystem": "^5.14.0",
    "gatsby-transformer-hjson": "^5.14.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  }

Without these additional changes, the application will fail to build. It is also advisable to consult the official Gatsby migration guides (v2 to v3, v3 to v4, and v4 to v5) for any code-level API changes and to test thoroughly.

"gatsby-source-filesystem": "^2.0.1",
"gatsby-transformer-hjson": "^2.1.1",
"react": "^16.3.2",
Expand Down