From 9ac037529398456cf1c155df83311d5dd30a991d Mon Sep 17 00:00:00 2001 From: Jordan Acosta Date: Wed, 19 Jun 2024 16:29:32 -0700 Subject: [PATCH] fix: pin to last working version of react/types Looks like there's a bug with recent version of @types/react, that causes valid Typescript to fail with some React components. This was failing builds with my install stepper UI changes. Pinning to the last working version, as recommended in the github issue , appears to have solved the problem for me. https://github.com/creativetimofficial/material-tailwind/issues/528 --- package-lock.json | 15 +++++++++++---- package.json | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9cdac3e..c50c0e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ }, "devDependencies": { "@types/node": "^20", - "@types/react": "^18", + "@types/react": "18.2.42", "@types/react-dom": "^18", "@types/showdown": "^2.0.6", "autoprefixer": "^10.0.1", @@ -676,12 +676,13 @@ "dev": true }, "node_modules/@types/react": { - "version": "18.2.79", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.79.tgz", - "integrity": "sha512-RwGAGXPl9kSXwdNTafkOEuFrTBD5SA2B3iEB96xi8+xu5ddUa/cpvyVCSNn+asgLCTHkb5ZxN8gbuibYJi4s1w==", + "version": "18.2.42", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.42.tgz", + "integrity": "sha512-c1zEr96MjakLYus/wPnuWDo1/zErfdU9rNsIGmE+NV71nx88FG9Ttgo5dqorXTu/LImX2f63WBP986gJkMPNbA==", "dev": true, "dependencies": { "@types/prop-types": "*", + "@types/scheduler": "*", "csstype": "^3.0.2" } }, @@ -694,6 +695,12 @@ "@types/react": "*" } }, + "node_modules/@types/scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-YIoDCTH3Af6XM5VuwGG/QL/CJqga1Zm3NkU3HZ4ZHK2fRMPYP1VczsTUqtsf43PH/iJNVlPHAo2oWX7BSdB2Hw==", + "dev": true + }, "node_modules/@types/showdown": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/showdown/-/showdown-2.0.6.tgz", diff --git a/package.json b/package.json index eaa7ce7..c577342 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "@types/node": "^20", - "@types/react": "^18", + "@types/react": "18.2.42", "@types/react-dom": "^18", "@types/showdown": "^2.0.6", "autoprefixer": "^10.0.1",