Closed TwunTee closed 5 years ago
@bautrukevich @ZNick1982 can someone look into this please? I fixed this issue using the solution from stackoverflow but not sure which npm script to run to create a release version.
Hello @TwunTee Thanks for reporting this. I will take a look.
Kind regards, Nikolay Zherdev
Hello @TwunTee Fixed in https://github.com/uploadcare/ngx-uploadcare-widget/tree/v1.2.2_node_fix Can you please check?
Kind regards, Nikolay Zherdev.
The error is fixed!
The widget works fine when built using dev. When it is built for production I am getting an error """ this.renderer.destroyNode is not a function """ It happens after the file is uploaded. destroyNode function can be null during production as per angular docs. An stackoverflow thread with similar issue https://stackoverflow.com/questions/44465653/what-is-the-correct-way-to-destroy-an-element-created-with-renderer2