From c73e4b2daad5091560b4a17a6b080438e09a79f3 Mon Sep 17 00:00:00 2001 From: mrholek Date: Mon, 29 Jun 2026 16:48:13 +0200 Subject: [PATCH] chore: pin react/react-dom to 18.3.1 for a single React instance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docs workspace (@coreui/react-docs) depends on react@19, which yarn can hoist to the repo root and split the library/react-dom onto duplicate nested react@18 copies — exactly what broke coreui-react-pro's tests ("invalid hook call"). coreui-react currently avoids this only by luck of the hoist order; a resolutions pin makes a single react@18.3.1 instance deterministic across installs. --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 00faf2ff..4c720bd0 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,10 @@ "test": "npm-run-all charts:test icons:test lib:test", "test:update": "npm-run-all charts:test:update icons:test:update lib:test:update" }, + "resolutions": { + "react": "18.3.1", + "react-dom": "18.3.1" + }, "devDependencies": { "@typescript-eslint/parser": "^8.62.0", "eslint": "^9.39.4",