Angular: Typescript: Uncaught TypeError: Cannot set property ‘autoTable’ of undefined

I am trying to import a simple table using angular with jspdf-autotable. But I cant, Here is error jspdf.plugin.autotable.js:1023 Uncaught TypeError: Cannot set property ‘autoTable’ of undefined …