I've just started to use Angular and I'm having trouble with running a working example of using the "emailjs" package in Angular 7 version. I was wondering if maybe someone could give me some guidance on how to get the implementation working? The test code of the call is the same as original at the source
BTW, despite the modification (source of the hint) on the surce at the "node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js" (change to "node: {crypto: true, stream: true} , "), I'am still getting errors:
*ERROR and ./node_modules/emailjs/smtp/message.js Module not found: Error: Can not resolve 'fs' in 'C: \ VSCodeProjects \ NAProject \ node_modules \ emailjs \ smtp'
ERROR and ./node_modules/emailjs/smtp/smtp.js Module not found: Error: Can not resolve 'net' and 'C: \ VSCodeProjects \ NAProject \ node_modules \ emailjs \ smtp'
ERROR and ./node_modules/emailjs/smtp/smtp.js Module not found: Error: Can not resolve 'os' in 'C: \ VSCodeProjects \ NAProject \ node_modules \ emailjs \ smtp'*
versions:
- @ emailjs 2.2.0
- @ npm 6.4.1
- @ angular-devkit / architect 0.10.7
- @ angular-devkit / build-angular 0.10.7
- @ angular-devkit / build-optimizer 0.10.7
- @ angular-devkit / build-webpack 0.10.7
- @ angular-devkit / core 7.0.7
- @ angular-devkit / schematics 7.3.0
- @ angular / cli 7.3.0
- @ ngtools / webpack 7.0.7
- @ schematics / angular 7.3.0
- @ schematics / update 0.13.0
- rxjs 6.3.3 typescript 3.1.6
- webpack 4.19.1
I would appreciate any help, regards, E.