I am having troubles while importing the JSZip library in my Angular 2 project. I followed the following steps in order to change the project configuration:
1 - Inst
There is a typo and it should be:
import * as JSZip from 'jszip';
let zipFile: JSZip = new JSZip();
For those who want to know how it ended, the problem was in the import. The following is the correct import:
import * as JSZip from 'jszip';
Then, it is used as follows:
let zipFile: JSZip = new JSZip();