12 Haziran 2018 Salı

Angular 2+ Failed to build project with JSZip library Issue Solving


While installing some of node packages you may have an issue as follow;


ERROR in ./node_modules/jszip/lib/readable-stream-browser.js
Module not found: Error: Can't resolve 'stream' in 'C:\Users\username\angularprojectname\node_modules\jszip\lib'


just need to follow file path road to reach readable-stream-browser.js file and change content as below to solve issue like a charm :)


Before :

module.exports = require("stream");

After :

module.exports = require("readable-stream");
Yunus Emre Web Developer

Morbi aliquam fringilla nisl. Pellentesque eleifend condimentum tellus, vel vulputate tortor malesuada sit amet. Aliquam vel vestibulum metus. Aenean ut mi aucto.