title: Same npm package working nicely on CodeSandbox but showing error on my local machine
body: <p>Trying to integrate a rich text editor package on one of my reactjs projects named Dante3 which is nicely working on CodeSandbox but on my local machine showing error : &quot;Uncaught TypeError prosemirrorState.PluginKey is not a constructor&quot;.
  Error image : <a href="https://i.stack.imgur.com/ynhLK.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Note:The package Dante3 used ProseMirror(a rich text editor) on their building block.</p>
  <p>I've maintained the same versions for all dependencies both on my machine and on CodeSandbox</p>
  <p>Even I arise an issue on Dante3 GitHub repository and the owner himself also get confused about the issue and finally get back without any solution .</p>
  <p>CodeSandbox link : <a href="https://codesandbox.io/s/dante3-react18-wejnp9" rel="nofollow noreferrer">https://codesandbox.io/s/dante3-react18-wejnp9</a></p>
  <p>code on my machine :<a href="https://i.stack.imgur.com/lqKfO.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>and the dependencies : <a href="https://i.stack.imgur.com/k3UGc.png" rel="nofollow noreferrer">enter image description here</a></p>