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:
- Created 5 years ago
- Reactions:14
- Comments:42 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
funny, I did npm install stream and worked for me 😃