I've used this package in Angular 7 codebase and it is working fine when I run the project.
However, when I try to ng --build the code, I get the following error:
ERROR in modules-login-login-module-ngfactory.0e87ddf2fd23f5d113c2.js from Terser Unexpected token: punc ()) [./node_modules/crypto-es/lib/evpkdf.js:41,0][modules-login-login-module-ngfactory.0e87ddf2fd23f5d113c2.js:1318,4]
In the above error message, login_module is the component in which I've implemented the logic.
I've updated the compiler options as suggested, but still the error doesn't go.
Hello,
I've used this package in Angular 7 codebase and it is working fine when I run the project.
However, when I try to ng --build the code, I get the following error:
ERROR in modules-login-login-module-ngfactory.0e87ddf2fd23f5d113c2.js from Terser Unexpected token: punc ()) [./node_modules/crypto-es/lib/evpkdf.js:41,0][modules-login-login-module-ngfactory.0e87ddf2fd23f5d113c2.js:1318,4]
In the above error message, login_module is the component in which I've implemented the logic.
I've updated the compiler options as suggested, but still the error doesn't go.
Please advise.