Skip to content

Commit 2112df8

Browse files
back to 18 react
1 parent c581651 commit 2112df8

File tree

3 files changed

+32
-36
lines changed

3 files changed

+32
-36
lines changed

package-lock.json

Lines changed: 24 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
"node-polyfill-webpack-plugin": "^2.0.1",
6262
"prettier": "^3.6.2",
6363
"prism-react-renderer": "^2.4.1",
64-
"react": "^19.1.0",
64+
"react": "^18.0.0",
6565
"react-alert": "^7.0.3",
66-
"react-dom": "^19.1.0",
66+
"react-dom": "^18.1.0",
6767
"react-dropdown-select": "^4.12.2",
6868
"react-modal": "^3.16.3",
6969
"react-player": "^3.3.1",
@@ -82,7 +82,6 @@
8282
"@tsconfig/docusaurus": "^2.0.3",
8383
"@types/react": "^19.1.8",
8484
"@types/react-alert": "^7.0.6",
85-
"@types/react-dom": "^19.1.6",
8685
"@types/react-modal": "^3.16.3",
8786
"@typescript-eslint/parser": "^8.37.0",
8887
"eslint": "^8.0.0",
@@ -94,8 +93,8 @@
9493
},
9594
"overrides": {
9695
"react-alert": {
97-
"react": "^19.1.0",
98-
"react-dom": "^19.1.0"
96+
"react": "^18.0.0",
97+
"react-dom": "^18.0.0"
9998
}
10099
},
101100
"browserslist": {

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22
// This file is not used in compilation. It is here just for a nice editor experience.
33
"extends": "@docusaurus/tsconfig",
44
"compilerOptions": {
5+
"jsx": "react-jsx",
6+
"lib":["DOM", "ES2022"],
7+
"types": ["react","docusaurus-plugin-sass"],
58
"rootDir": "./src",
69
"baseUrl": ".",
7-
"jsx": "react-jsx",
810
"paths": {
911
"@site/*": ["./*"],
1012
"@theme/*": ["./node_modules/@docusaurus/theme-classic"],
1113
"launchdarkly": [
1214
"./node_modules/launchdarkly-js-client-sdk/dist/ldclient.es.js"
1315
],
1416
"sentry-plugin": ["./node_modules/@sentry/browser/build/npm/esm/index.js"]
15-
},
16-
"types": ["react","react-dom","docusaurus-plugin-sass"]
17+
}
1718
},
1819
"include": ["src/globals.d.ts", "./src/**/*"],
1920
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)