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-styled-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Kyle Mathews <[email protected]>",
"dependencies": {
"babel-plugin-styled-components": "^1.8.0",
"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 to v5 is a major breaking change that requires updating other dependencies. The project will not build without these additional changes.

Required Dependency Updates:

  1. React: Gatsby v5 requires React 18.

    • react: ^16.4.0^18.2.0
    • react-dom: ^16.4.0^18.2.0
  2. Gatsby Plugins: All plugins must be upgraded to be compatible with Gatsby v5.

    • gatsby-plugin-offline: ^2.0.5^6.13.0
    • gatsby-plugin-react-helmet: ^3.0.0^6.13.0
    • gatsby-plugin-styled-components: ^3.0.0^6.13.0
    • gatsby-plugin-typography: ^2.2.0^5.13.0
  3. Deprecated Plugin:

    • gatsby-plugin-google-analytics is deprecated. It should be removed and replaced with @gatsbyjs/gatsby-plugin-google-gtag. This also requires updating gatsby-config.js.
  4. Peer Dependencies: Other packages need updates due to new peer dependency requirements from the upgraded plugins.

    • react-helmet: ^5.2.0^6.1.0
    • styled-components: ^4.0.2^5.3.0 (for React 18 compatibility)
    • react-typography: ^0.16.13^0.16.20
    • typography: ^0.16.17^0.16.21

This automated PR is incomplete. I recommend applying these changes to make the upgrade successful.

"gatsby-plugin-google-analytics": "^2.0.5",
"gatsby-plugin-offline": "^2.0.5",
"gatsby-plugin-react-helmet": "^3.0.0",
Expand Down