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-page-loading-indicator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Gatsby example site using using-page-loading-indicator",
"author": "Kyle Mathews<[email protected]>",
"dependencies": {
"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 change that will break the build because other dependencies are now incompatible.

To fix this, you need to update related packages. Specifically:

  • react and react-dom must be upgraded to ^18.0.0 as required by Gatsby v5.
  • gatsby-plugin-nprogress must be upgraded to a compatible version, like ^5.13.0.

The dependencies section should look like this:

"dependencies": {
  "gatsby": "^5.14.0",
  "gatsby-plugin-nprogress": "^5.13.0",
  "react": "^18.2.0",
  "react-dom": "^18.2.0"
}

"gatsby-plugin-nprogress": "^2.0.5",
"react": "^16.4.0",
"react-dom": "^16.4.0"
Expand Down