Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
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
The text was updated successfully, but these errors were encountered:
@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.
Sorry, something went wrong.
Thanks for reporting this.
I will take a look.
Fixed in https://github.com/uploadcare/ngx-uploadcare-widget/tree/v1.2.2_node_fix
Can you please check?
The error is fixed!
Successfully merging a pull request may close this issue.