title: TypeError: Cannot read property 'imports' of undefined (react-quill)
body: <p>Error:</p>
  <pre><code>TypeError: Cannot read property 'imports' of undefined
  (anonymous function)
  C:/Users/abc/finaltest/node_modules/quill-image-resize-module/image-resize.min.js:1
  </code></pre>
  <p>I installed quill-image-resize using:</p>
  <pre><code>npm i --save quill-image-resize-module
  </code></pre>
  <p>Since I'm using react and thus do not have a tsconfig file, I'm unable to follow solutions available on the internet.</p>
  <p>My code:</p>
  <pre><code>import ReactQuill from 'react-quill'
  import Quill from 'quill';
  import { ImageResize } from 'quill-image-resize-module'; 
  Quill.register('modules/imageResize', ImageResize);
  
  modules = {
          
          toolbar: {
              container:this.toolbarOptions,
              
          },
          ImageResize: {
              modules: [ 'Resize', 'DisplaySize', 'Toolbar' ]
          }        
          
  }
  </code></pre>
  <p>this is what I get when I hover on the import statement</p>
  <pre><code>Could not find a declaration file for module 'quill-image-resize-module'. 'c:/Users/abc/final blog/finaltest/node_modules/quill-image-resize-module/image-resize.min.js' implicitly has an 'any' type.
  </code></pre>
  <p>I tried using the <code>require</code> statement, but the error remains the same.</p>
  <p>These are my dependencies:</p>
  <pre><code>&quot;quill-image-resize-module&quot;: &quot;^3.0.0&quot;,
  &quot;quill-image-resize-module-react&quot;: &quot;^3.0.0&quot;,
  &quot;react&quot;: &quot;^17.0.2&quot;,
  &quot;react-quill&quot;: &quot;^1.3.5&quot;,
  </code></pre>
  <p>I tried the same with quill-image-resize-module-react, but I couldnt solve the error. My reactquill editor worked before this. I'm not using webpack so I dont even have webpack.config.js to try and solve the issue. I havent done any changes to the original files in node_modules/quill-image-resize-module.</p>
  <p>This is the first time I'm trying react and thus would appreciate some help. I'm more than certain it is something under my nose that I'm not able to see. Thank you for your time.</p>