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: [