Closed jack-sparroow closed 2 years ago
This looks to me like an environmental problem. Do you have a standalone example of this module failing to work? There haven't been any recent updates that would have cause any issues.
Moreover, this module is a Node module, and not intended to run in a browser with Angular.
In node.js it works fine. but, for my use case I have to use this package in angular project
. But, as you mentioned it is not intended for browser use. So, I have to use a workaround.
like this https://gist.github.com/Mustafa-Omran/bb0810c9e51a1453de8c298b524b217e
I had the working angular project. Then I have added
replace_in_file
using npm.package.json
Implementation
updatepackagejson.service.ts
But, after doing
ng serve
I am getting