Skip to content

Commit

Permalink
🔨 Fix error: "Failed to fetch dynamically imported module in preview.…
Browse files Browse the repository at this point in the history
…jsx" for the first time run "pnpm storybook"
  • Loading branch information
frankda committed Jan 4, 2023
1 parent d32e333 commit 11d7031
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ module.exports = {
fs: require.resolve('rollup-plugin-node-builtins'),
},
};
config.optimizeDeps = {
include: ['msw-storybook-addon'],
};
return config;
},
webpackFinal: async (config) => {
Expand Down

0 comments on commit 11d7031

Please sign in to comment.