From 1abf289d1b589006dd3066c1174a3a03c84d7a31 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 11 Jan 2023 19:40:17 -0600 Subject: [PATCH] Fix React 17 jsx-runtime module resolution bug --- webpack/shared.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack/shared.ts b/webpack/shared.ts index 6bfe14be70..2a8fdcb503 100644 --- a/webpack/shared.ts +++ b/webpack/shared.ts @@ -157,6 +157,9 @@ const configuration: Configuration = { fallback: { path: require.resolve('path-browserify'), util: require.resolve('util'), + // https://github.com/facebook/react/issues/20235#issuecomment-1061708958 + 'react/jsx-runtime': 'react/jsx-runtime.js', + 'react/jsx-dev-runtime': 'react/jsx-dev-runtime.js', }, },