Skip to content

Commit 11d7031

Browse files
committed
🔨 Fix error: "Failed to fetch dynamically imported module in preview.jsx" for the first time run "pnpm storybook"
1 parent d32e333 commit 11d7031

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.storybook/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ module.exports = {
3939
fs: require.resolve('rollup-plugin-node-builtins'),
4040
},
4141
};
42+
config.optimizeDeps = {
43+
include: ['msw-storybook-addon'],
44+
};
4245
return config;
4346
},
4447
webpackFinal: async (config) => {

0 commit comments

Comments
 (0)