title: jupyter labextension install of qgrid failed on optional dependency (windows)
body: <p>When I try <code>jupyter labextension install qgrid</code> it fails, and the core error in the log file is the following:</p>
  <pre><code>$ webpack --config webpack.prod.minimize.config.js
  [webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve 'base/js/dialog'
  </code></pre>
  <p>The context in which this error occurs is so complicated it is kind of funny:</p>
  <p>Windows 10 &gt;&gt; Conda environment &gt;&gt; jupyter labextension install &gt;&gt; npm &gt;&gt; node yarn.js run &gt;&gt; webpack</p>
  <p>Everything from the conda environment on down is newly installed as of two days ago.  (jupyter lab version 3.0.9, node version v14.16.0)</p>
  <p>What is particularly interesting about the error is that the only reference to <code>base/js/dialog</code> in the code is this statement from <code>qgrid.widget.js</code>:</p>
  <pre><code>try {
    dialog = require('base/js/dialog');
  } catch (e) {
    console.warn(&quot;Qgrid was unable to load base/js/dialog. &quot; +
                 &quot;Full screen button won't be available&quot;);
  }
  </code></pre>
  <p>Now I don't know how <code>webpack</code> works, but it seems that somehow the optional load is causing a hard failure.   I'm looking for any insight on how to tackle this error.</p>
  <p>(Additional note: I also tried <code>jupyter lab build</code> just in case that would magically fix things, but it resulted in the same error.)</p>