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-jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "1.0.0",
"author": "Vladimir Guguiev <[email protected]>",
"dependencies": {
"gatsby": "^2.0.0",
"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

While upgrading gatsby is necessary to fix the security vulnerability, this is a major version bump from v2 to v4 which introduces significant breaking changes. The other dependencies in this package.json are not compatible with Gatsby v4 and will cause the build to fail.

To fix this, you'll need to update the related packages as well. Here are the recommended versions:

  • gatsby-plugin-flow: ^1.0.1 -> ^4.22.0
  • gatsby-plugin-jss: ^2.0.2 -> ^4.22.0
  • react: ^16.4.0 -> ^17.0.2 (Gatsby v4 requires React 17+)
  • react-dom: ^16.4.0 -> ^17.0.2
  • react-jss: ^8.6.1 -> ^10.9.0 (peer dependency of [email protected])

Without these additional changes, this example will be broken.

"gatsby-plugin-flow": "^1.0.1",
"gatsby-plugin-jss": "^2.0.2",
"react": "^16.4.0",
Expand Down