From c12c9a5508140f87d99b500b57fec7931816ac6a Mon Sep 17 00:00:00 2001 From: sloane <1699281+sloanelybutsurely@users.noreply.github.com> Date: Wed, 3 Jul 2024 13:55:34 -0400 Subject: [PATCH] fix: issue with react jsx runtime import https://github.com/facebook/react/issues/20235#issuecomment-732205073 --- assets/webpack.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/webpack.config.js b/assets/webpack.config.js index 366e3cf1..8e040a93 100644 --- a/assets/webpack.config.js +++ b/assets/webpack.config.js @@ -62,6 +62,11 @@ module.exports = (env, options) => ({ Models: path.resolve(__dirname, "js/models"), Utils: path.resolve(__dirname, "js/utils"), Constants: path.resolve(__dirname, "js/constants"), + // Fix issue with React JSX rutime export + // https://github.com/facebook/react/issues/20235#issuecomment-732205073 + // This is fixed in later versions of react so this can be removed when + // upgrading react. Keeping it in shouldn't hurt anything. + "react/jsx-runtime": require.resolve("react/jsx-runtime"), }, }, plugins: [