diff --git a/modules/opendesk/element-web/vite.config.ts b/modules/opendesk/element-web/vite.config.ts index 6535c4625d..8f1d83e06f 100644 --- a/modules/opendesk/element-web/vite.config.ts +++ b/modules/opendesk/element-web/vite.config.ts @@ -41,7 +41,8 @@ export default defineConfig({ }), ], define: { - // Use production mode for the build as it is tested against production builds of Element Web + // Use production mode for the build as it is tested against production builds of Element Web, + // this is required for React JSX versions to be compatible. process: { env: { NODE_ENV: "production" } }, }, });