Closed rcollette closed 2 years ago
I think you'll need this option: https://webpack.js.org/configuration/node/
Thank you @mcollina .
The web pack configuration is no longer directly available in Angular. We are on Angular 7 for the time being and the final mechanism for customizing the the WebPack config is available in Angular 8 https://netbasal.com/customize-webpack-configuration-in-your-angular-application-d09683f6bd22
That configuration option also goes away in WebPack 5 as discussed on the #412 issue, so I suspect this will similarly be a problem going forward.
We're going to go with a server side implementation for the time being.
I'm trying to pull this library into an Angular application (webpack).
The use case is that I am trying to use PDFKit and blob-stream to create a PDF in the browser.
I override the "stream" module path in my tsconfig.json
I am getting the error
I try to work around that by adding in my index.html
But then I get the error:
Which seems to be related to: https://github.com/nodejs/readable-stream/issues/412
What are the conditions required to use this library in a browser?
My specific environment is: