From ec2b13463788527bf2279743fb6909c61d51f4ec Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 27 Sep 2023 15:22:17 +0200 Subject: [PATCH] Change to require React 18 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit React 16 *may* currently still work depending on your bundler. But it doesn’t work in Node, because the React team uses an incorrect export map to expose their JSX runtime in 16 (and 17). --- package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 82497e1c..42b8afde 100644 --- a/package.json +++ b/package.json @@ -78,11 +78,9 @@ ], "dependencies": { "@types/hast": "^3.0.0", - "@types/prop-types": "^15.0.0", "devlop": "^1.0.0", "hast-util-to-jsx-runtime": "^2.0.0", "mdast-util-to-hast": "^13.0.0", - "prop-types": "^15.0.0", "remark-parse": "^11.0.0", "remark-rehype": "^11.0.0", "unified": "^11.0.0", @@ -90,8 +88,8 @@ "vfile": "^6.0.0" }, "peerDependencies": { - "@types/react": ">=16", - "react": ">=16" + "@types/react": ">=18", + "react": ">=18" }, "devDependencies": { "@types/node": "^20.0.0",