Skip to content

Commit 8a5b7e9

Browse files
fix(deps): Resolve React version incompatibility (#921)
The application was crashing on startup with a `ContextRegistry` error. This was caused by the Gatsby v5 project inheriting an incompatible version of React (v19) from the parent repository. This change pins `react` and `react-dom` to `^18.2.0` in the `package.json` to ensure compatibility with Gatsby and isolate its environment. By submitting a PR to this repository, you agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md). Please see the [contributing guidelines](https://github.com/auth0/.github/blob/master/CONTRIBUTING.md) for how to create and submit a high-quality PR for this repo. ### Description > Describe the purpose of this PR along with any background information and the impacts of the proposed change. For the benefit of the community, please do not assume prior context. > > Provide details that support your chosen implementation, including: breaking changes, alternatives considered, changes to the API, etc. > > If the UI is being changed, please provide screenshots. ### References > Include any links supporting this change such as a: > > - GitHub Issue/PR number addressed or fixed > - Auth0 Community post > - StackOverflow post > - Support forum thread > - Related pull requests/issues from other repos > > If there are no references, simply delete this section. ### Testing > Describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors. > > Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests. > > Also include details of the environment this PR was developed in (language/platform/browser version). - [ ] This change adds test coverage for new/changed/fixed functionality ### Checklist - [ ] I have added documentation for new/changed functionality in this PR or in auth0.com/docs - [ ] All active GitHub checks for tests, formatting, and security are passing - [ ] The correct base branch is being used, if not the default branch
2 parents 9759844 + 73e53ea commit 8a5b7e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/gatsby-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"@auth0/auth0-react": "file:../..",
88
"bootstrap": "^5.0.0",
99
"gatsby": "^5.0.1",
10-
"react": "file:../../node_modules/react",
11-
"react-dom": "file:../../node_modules/react-dom"
10+
"react": "^18.2.0",
11+
"react-dom": "^18.2.0"
1212
},
1313
"devDependencies": {
1414
"prettier": "2.0.5",

0 commit comments

Comments
 (0)