diff --git a/examples/with-typescript-plugin/package.json b/examples/with-typescript-plugin/package.json index fff853db8..cf80cc05e 100644 --- a/examples/with-typescript-plugin/package.json +++ b/examples/with-typescript-plugin/package.json @@ -43,6 +43,10 @@ "webpack": "^4.44.1", "webpack-dev-server": "^3.11.2" }, + "resolutions": { + "@types/react": "<18.0.0", + "@types/react-dom": "<18.0.0" + }, "jest": { "transform": { "\\.(ts|tsx)$": "ts-jest", diff --git a/examples/with-typescript/package.json b/examples/with-typescript/package.json index 5599eff35..fae8e73f5 100644 --- a/examples/with-typescript/package.json +++ b/examples/with-typescript/package.json @@ -25,8 +25,8 @@ "@types/express": "^4.17.6", "@types/jest": "^25.2.1", "@types/node": "^13.13.2", - "@types/react": "^16.9.34", - "@types/react-dom": "^16.9.6", + "@types/react": "^17", + "@types/react-dom": "^17", "@types/react-router-dom": "^5.1.4", "@types/webpack-env": "^1.15.2", "babel-preset-razzle": "4.2.15", @@ -37,5 +37,9 @@ "html-webpack-plugin": "^4.5.2", "webpack": "^4.44.1", "webpack-dev-server": "^3.11.2" + }, + "resolutions": { + "@types/react": "<18.0.0", + "@types/react-dom": "<18.0.0" } }