title: How to import jspdf-autotable in Vue main.js?
body: <p>I searched all over the internet but found nothing. I know this is a noob question.</p>
  
  <p>I installed jspdf and jspdf-autotable over npm in my vue project:</p>
  
  <pre><code>npm install jspdf --save
  npm install jspdf-autotables --save
  </code></pre>
  
  <p>Packages installed successfully. I'm importing jspdf and jspdf-autotable in main.js file like that:</p>
  
  <pre><code>import jsPDF from 'jspdf';
  import 'jspdf-autotable';
  
  Vue.use(jsPDF)
  </code></pre>
  
  <p>Then in my .vue file I import jsPDF first:</p>
  
  <pre><code>import jsPDF from 'jspdf';
  </code></pre>
  
  <p>and then in mounted() hook:</p>
  
  <pre><code>let doc = new jsPDF();
  doc.autoTable({ html: '#my-table' });
  doc.save('table.pdf');
  </code></pre>
  
  <p>But autoTable is not imported. It says unresolved method or hook autotable. I get empty pdf.</p>
  
  <p>I don't know how to import autoTable. Please help me. It's one day left to finish my job. Sorry I'm new to Vue js. Many thanks in advance!</p>