title: Cannot find module 'immer' from 'node_modules/use-immer/dist/use-immer.js'?
body: <p>I use useImmer in react project. Locally, everything starts, but in Github Actions and when deploying in Vercel, an error occurs with Immer. As I understand it, it does not find the required module.</p>
  <pre class="lang-js prettyprint-override"><code>import React, { useState } from 'react';
  import { useImmer } from 'use-immer';
  import getModal from './modals/index';  
  </code></pre>
  <p>And the tests don't work because of the error.<br />
  GitHub Actions:</p>
  <pre><code>npm test -s
   FAIL  __tests__/test.jsx
    ● Test suite failed to run
  
      Cannot find module 'immer' from 'node_modules/use-immer/dist/use-immer.js'
  
      Require stack:
        node_modules/use-immer/dist/use-immer.js
        src/App.jsx
        __tests__/test.jsx
  
        at Resolver.resolveModule (node_modules/jest-resolve/build/resolver.js:311:11)
        at Object.&lt;anonymous&gt; (node_modules/use-immer/dist/use-immer.js:1:94)
  </code></pre>
  <p>And the deployment does not work.<br />
  Vercel:</p>
  <pre><code>15:11:16.184    ERROR in ./node_modules/use-immer/dist/use-immer.module.js 1:0-21
  15:11:16.184    Module not found: Error: Can't resolve 'immer' in '/vercel/path0/node_modules/use-immer/dist'
  </code></pre>