diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js
index ed4412a97..20b1e8efc 100644
--- a/superset-frontend/webpack.config.js
+++ b/superset-frontend/webpack.config.js
@@ -309,7 +309,7 @@ const config = {
// resolve modules from `/superset_frontend/node_modules` and `/superset_frontend`
modules: ['node_modules', APP_DIR],
alias: {
- // TODO: remove aliases once React has been upgraded to v. 17 and
+ // TODO: remove aliases once React has been upgraded to v17 and
// AntD version conflict has been resolved
antd: path.resolve(path.join(APP_DIR, './node_modules/antd')),
react: path.resolve(path.join(APP_DIR, './node_modules/react')),
@@ -322,6 +322,14 @@ const config = {
This prevents "Module not found" errors for moment locale files.
*/
'moment/min/moment-with-locales': false,
+ // Temporary workaround to allow Storybook 8 to work with existing React v16-compatible stories.
+ // Remove below alias once React has been upgreade to v18.
+ '@storybook/react-dom-shim': path.resolve(
+ path.join(
+ APP_DIR,
+ './node_modules/@storybook/react-dom-shim/dist/react-16',
+ ),
+ ),
},
extensions: ['.ts', '.tsx', '.js', '.jsx', '.yml'],
fallback: {