question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

16.2.1-alpha.1: Module not found: Error: Can't resolve 'jszip' in \node_modules\devextreme\client_exporter

See original GitHub issue

I’m getting the following error with 16.2.1-alpha.1

ERROR in ./~/devextreme/client_exporter/excel_creator.js
Module not found: Error: Can't resolve 'jszip' in 'C:\temp\test-issue\node_modules\devextreme\client_exporter'
 @ ./~/devextreme/client_exporter/excel_creator.js 15:12-28
 @ ./~/devextreme/client_exporter.js
 @ ./~/devextreme/viz/core/export.js
 @ ./~/devextreme/viz/chart_components/base_chart.js
 @ ./~/devextreme/viz/chart.js
 @ ./~/devextreme-angular2/ui/chart.js
 @ ./~/devextreme-angular2/index.js
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.ts
 @ multi main

I’m using angular-cli with this setup:

// angular-cli.json
      "scripts": [
        "../node_modules/jquery/dist/jquery.min.js",
        "../node_modules/devextreme/dist/js/dx.all.js"
      ],

// app.module.ts
  imports: [
    BrowserModule,
    (...)
    DevExtremeModule
  ],

In 16.1.7 this works fine.

I also tried to change the scripts section of angular-cli.json to

// angular-cli.json
      "scripts": [
        "../node_modules/jquery/dist/jquery.min.js",
        "../node_modules/devextreme/dist/js/jszip.min.js",
        "../node_modules/devextreme/dist/js/dx.all.js"
      ],

but the problem remains.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
ganySAcommented, May 16, 2018

I am still getting this issue in version 18.1.3 ?

0reactions
ibrahimyilmaz7commented, Sep 11, 2018

I’m getting same error in 18.1.6 for command devextreme-bundler

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Error: Can't resolve 'stream' in 'C:\dev\jszip ...
After reading this post I found out that the stream package was missing from my project. You can install it by running the...
Read more >
JSZip problem updating to wijmo 5.20191... in Angular project
Module not found : Error: Can't resolve 'stream' in This issue is not because of wijmo. It is because of the Angular >6...
Read more >
jszip - npm
A library for creating, reading and editing .zip files with JavaScript, with a lovely and simple API. See https://stuk.github.io/jszip for all ...
Read more >
dxDataGrid - Can't resolve 'stream' error occurs in Angular ...
Module not found : Error: Can't resolve 'stream' in 'D:\Projects\PaxSinica-CMS\paxsinica-cms\node_modules\jszip\lib'.
Read more >
How to use JSZip
Create .zip files using JavaScript. Provides a simple API to place any content generated by JavaScript into a .zip file for your users....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found