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.

Angular 6: Can't resolve 'stream'

See original GitHub issue
  • Specify the version of the devextreme-angular and devextreme packages you are using. devexteme version: 17.2.7 devextreme-angular version: 17.2.7

  • Specify the type of the issue (check one with “x”): [x] bug Report [ ] feature request [ ] support inquiry

We’re trying to upgrade our project to Angular 6, but we see the following error when including any Dx* modules:

ERROR in ./node_modules/jszip/lib/readable-stream-browser.js
Module not found: Error: Can't resolve 'stream' in 'c:\Source\TestProject\node_modules\jszip\lib'

I’ve tried creating a clean Angular 6 project and just adding DevExtreme, but the results are the same.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:14
  • Comments:42 (2 by maintainers)

github_iconTop GitHub Comments

121reactions
GoshaFightencommented, May 4, 2018

This is a change in Angular CLI 6. It’s necessary to register JSZip in the tsconfig.json file as described in the https://github.com/angular/angular-cli/issues/9827#issuecomment-369647555 issue.

{
  ...
  "compilerOptions": {
    ...
    "paths": {
      "jszip": [
        "node_modules/jszip/dist/jszip.min.js"
      ]
    }
  }
}
64reactions
ardymalihicommented, Jun 5, 2018

funny, I did npm install stream and worked for me 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Error: Can't resolve 'stream' in 'C:\dev\jszip ...
It came from my IDE auto-importing EventEmitter from 'stream' instead of '@angular/core' in the library. Check for: import { EventEmitter } from ...
Read more >
A project's compilation fails with the "Can't resolve 'stream ...
I've tried creating a clean Angular 6 project and just adding DevExtreme, but the results are the same.
Read more >
Angular Error: Can't resolve 'stream' and Error - YouTube
... to node = {Crypto:true, Stream :true} " in #your project location #/node_modules/@ angular -devkit/build- angular /src/ angular -cli-files...
Read more >
can't resolve 'stream' in cipher-base - You.com | The AI Search ...
js: stream could not be found within the project. If you are sure the module exists, try these steps: 1. Clear watchman watches:...
Read more >
Angular 6 – Cannot resolve crypto, fs, net, path, stream when ...
The issue is that the Webpack config generated in this Angular project configured node to have the modules not loaded. Therefore, the fix...
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