Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 243 Bytes

fix-storybook-node-module-not-found.md

File metadata and controls

12 lines (10 loc) · 243 Bytes

Fix: Module not found: Error: Can't resolve 'child_process'

Add this to .storybook/main.js

module.exports = {
  webpackFinal: async (config, configType) => {
    config.node = {child_process: 'empty'};
    return config;
  },
};