diff --git a/assets/webpack.config.js b/assets/webpack.config.js index 366e3cf1d..91cd76db0 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: [