From d1130934997ffcec9eeb93aa4dc1bb31e6a366ee Mon Sep 17 00:00:00 2001 From: KubeSphere CI Bot <47586280+ks-ci-bot@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:26:57 +0800 Subject: [PATCH] [ksc-release-4.1] fix: Fix react/jsx-runtime error (#4312) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Fix react/jsx-runtime error * chore: update @kubed/components version --------- Co-authored-by: 古月 <17949154+yazhouio@users.noreply.github.com> --- package.json | 2 +- packages/bootstrap/webpack/webpack.base.conf.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index dd897fb23f1..82d43bf49a8 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dependencies": { "@kubed/charts": "^0.0.22", "@kubed/code-editor": "^0.0.27", - "@kubed/components": "^0.2.8", + "@kubed/components": "^0.2.10", "@kubed/diff-viewer": "^0.0.23", "@kubed/hooks": "^0.0.18", "@kubed/icons": "^0.0.20", diff --git a/packages/bootstrap/webpack/webpack.base.conf.js b/packages/bootstrap/webpack/webpack.base.conf.js index e195bf21a08..2f1a411ef6a 100644 --- a/packages/bootstrap/webpack/webpack.base.conf.js +++ b/packages/bootstrap/webpack/webpack.base.conf.js @@ -32,6 +32,8 @@ const webpackBaseConfig = merge(configs, { modules: [resolve('extensions'), resolve('packages'), 'node_modules'], alias: { 'styled-components': resolve('node_modules/styled-components'), + 'react/jsx-runtime': 'react/jsx-runtime.js', + 'react/jsx-dev-runtime': 'react/jsx-dev-runtime.js', }, fallback: { path: require.resolve('path-browserify') }, },