title: Storybook couldn't resolve fs
body: <p>I am setting up a Storybook with RemixJS. I got the following error when trying to import a component</p>
  <pre><code>ERROR in ./node_modules/@remix-run/node/errors.js
  Module not found: Error: Can't resolve 'fs' in '/Users/ht/Desktop/a/node_modules/@remix-run/node'
  ERROR in ./node_modules/@remix-run/node/node_modules/source-map/lib/read-wasm.js
  Module not found: Error: Can't resolve 'fs' in '/Users/ht/Desktop/a/node_modules/@remix-run/node/node_modules/source-map/lib'
  ERROR in ./node_modules/@remix-run/node/sessions/fileStorage.js
  Module not found: Error: Can't resolve 'fs' in '/Users/ht/Desktop/a/node_modules/@remix-run/node/sessions'
  ERROR in ./node_modules/busboy/lib/main.js
  Module not found: Error: Can't resolve 'fs' in '/Users/ht/Desktop/a/node_modules/busboy/lib'
  ERROR in ./node_modules/@remix-run/node/errors.js
  Module not found: Error: Can't resolve 'fs/promises' in '/Users/ht/Desktop/a/node_modules/@remix-run/node'
  ERROR in ./node_modules/@remix-run/node/upload/fileUploadHandler.js 124:15
  Module parse failed: Unexpected token (124:15)
  You may need an appropriate loader to handle this file type, currently, no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
  | }
  | class NodeOnDiskFile {
  &gt;   lastModified = 0;
  |   webkitRelativePath = &quot;&quot;;
  | 
  ERROR in ./node_modules/@remix-run/node/formData.js 53:73
  Module parse failed: Unexpected token (53:73)
  You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
  |   get(name) {
  |     let arr = this._fields[name];
  &gt;     return (arr === null || arr === void 0 ? void 0 : arr.slice(-1)[0]) ?? null;
  |   }
  | 
  </code></pre>
  <p>I got the suggestion that I should add this to the web pack</p>
  <pre><code>{
    resolve: {
      fallback: {
        fs: false
      }
    }
  }
  </code></pre>
  <p>How could I do it with a storybook? I use storybook version 6.4.19</p>
  <p>I added this to .storybook/main.js but without success</p>
  <pre><code> webpackFinal: async (config, { configType }) =&gt; {
        config.node = {
          ...config.node,
          fs: 'empty'
        };
        return config;
      },
  </code></pre>
  <p>Thank you</p>