Skip to content

Commit 744f4de

Browse files
authored
Storybook fix (#1536)
1 parent d872c63 commit 744f4de

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • design-system/docs/.storybook

design-system/docs/.storybook/main.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ module.exports = {
1818
name: '@storybook/nextjs',
1919
options: {},
2020
},
21+
webpackFinal: async config => ({
22+
...config,
23+
resolve: {
24+
...config.resolve,
25+
alias: {
26+
...(config.resolve?.alias ?? {}),
27+
'@storybook/react-dom-shim': '@storybook/react-dom-shim/dist/react-18',
28+
},
29+
},
30+
}),
2131
typescript: {
2232
reactDocgen: false,
2333
},

0 commit comments

Comments
 (0)