JSZip problem updating to wijmo 5.20191... in Angular project

Posted by: stefan.brenner.a on 14 May 2019, 5:40 pm EST

    • Post Options:
    • Link

    Posted 14 May 2019, 5:40 pm EST

    Hi,

    I’m currently trying to update to any version from 5.20191.xx and am getting a compile error that states:

    ERROR in ./node_modules/jszip/lib/readable-stream-browser.js

    Module not found: Error: Can’t resolve ‘stream’ in ‘C:\TFS\TED\Main\Projects\MDT.TED.Web\node_modules\jszip\lib’

    If I revert to any earlier version e.g. 5.20183.568 I can compile without any problems. I’ve been trying with different Angular (7, 8 rc3) versions all with the same result. I’m using the Angular CLI btw.

    Can you please point me in a direction to figure out what is wrong?

    Thanks,

    Stefan

  • Posted 14 May 2019, 7:35 pm EST

    In another project I get a slightly different error message:

    ERROR in ./node_modules/wijmo/wijmo.xlsx.js

    Module not found: Error: Can’t resolve ‘jszip’ in ‘C:\TFS\AssetTanker\1.30\Projects\Mya.AssetFeeder.Web\node_modules\wijmo’

  • Posted 15 May 2019, 4:03 pm EST

    Hi Stefan,

    Module not found: Error: Can’t resolve ‘stream’ in

    This issue is not because of wijmo. It is because of the Angular >6 build process.

    You may fix this issue by installing the stream using the npm install stream command.

    Please refer to the following link for reference:​

    https://github.com/angular/angular-cli/issues/10625#issuecomment-390878516​

    Module not found: Error: Can’t resolve ‘jszip’ in

    It seems that the JSZip module is not installed for this project. Please try to install the JSZip module or include the JSZip scripts.

    If the issue persists, please share a demo sample depicting your issue.

    Regards,

    Manish Gupta

  • Posted 15 May 2019, 5:56 pm EST

    Hi Manish,

    installing stream solved the issue. I was just confused because I didn’t have the issue in the older wijmo versions but I guess the direct dependency to jszip has been added to wijmo in the latest version.

    Anyway thanks for helping me solve this,

    Stefan

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels