From 8b565108658587d2ea092516ed793c594a7f2377 Mon Sep 17 00:00:00 2001 From: Alexandra Buzila Date: Tue, 26 Jul 2022 17:16:59 +0200 Subject: [PATCH] Update React to v18 Update migration guide to mention react resolutions from package.json Contributed on behalf of STMicroelectronics Signed-off-by: Alexandra Buzila --- doc/Migration.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/Migration.md b/doc/Migration.md index 42cbe25182f02..93e7dbc3d505e 100644 --- a/doc/Migration.md +++ b/doc/Migration.md @@ -29,6 +29,16 @@ The `react` and `react-dom` dependencies were upgraded to version 18. Some relev - the new API no longer supports render callbacks - updates in promises, setTimeout, event handlers are automatically batched + Because the currently used version of `react-virtualized` still depends on React 16, a `resolutions` block is needed in the `package.json` for the React 18 dependencies: + + ```json +"resolutions": { + "@types/react": "18.0.15", + "@types/react-dom": "18.0.6" + ... + } + ``` + ### v1.24.0 #### node-gyp 8.4.1