Buffer not defined error(Angular 6)

Hi. Already seen the topic about similar error with React Native, but I use Angular, so would it work somehow for me?