If you are wondering where the data of this site comes from, please visit GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

Arjen-1/angular-testing-course 0

Angular Testing Course - A complete guide to Angular Unit Testing and E2E Testing

tdenheld/ns-flex 0

NS Flex Campaign

issue commentAKASHAorg/secure-webstore

The future of secure-webstore

@Jopie64 might get in touch with you. But he's on Holiday right now. Thanks again!


comment created time in 2 months


started time in 2 months


started time in 2 months


started time in 2 months


started time in 2 months


started time in 2 months


started time in 2 months


started time in 2 months


started time in 2 months


started time in 2 months


started time in 2 months


started time in 2 months


started time in 2 months

issue openedAKASHAorg/secure-webstore

Buffer.from is not a function; Console & unit testing errors

Hi Andrei,

We love your npm package and are using it for a while now.

Error: Buffer.from() is not a function after updating to Angular 12 & removing webpack v4.

We've encountered a bug since we've updated our application to Angular 12. This update enforces webpack v5 via a peer-dependency. And from what we found there is a problem within secure-webstore being unable to find Buffer.from() and therefore it gives this error: `Error: Buffer.from() is not a function. This error occurs in both the console as in the unit-tests.

I searched the web and found something which might be interesting. This 'Buffer' was part of webpack 4. But is removed since webpack 5. And now that we can't use webpack 4 because Angular enforces webpack v5 as a peer-dependency.

I'm not sure how webpack is related to secure-webstore and i'm not sure the issue is really in the area i've just described. I hope you know more about this issue and might know a solution.

To Reproduce Use secure-website in combination with Angular12 and make sure there is no direct dependency to webpack ( as it is a peer-dependency of @angular-devkit/build-angular )

Expected behavior A clear and concise description of what you expected to happen.

Screenshots error buffer from console2 error buffer from console error buffer from unit test karma jasmine

Desktop (please complete the following information):

  • OS : Windows ( but not important for this case i guess.
  • Browser: Chrome
  • Version of secure-webstore: latest (v1.3.5 - security updates)

Thank you again for your great package. Hope to hear from you.

Kind regards,


created time in 2 months