Posted 1 June 2021, 7:10 am EST
Hi there,
We encountered an issue with gcpdfviewer that can only be reproduced when the JS file (gcpdfviewer.js) is lazily loaded into our Angular app. The errors occurs when trying to use “viewer.saveChanges()” which throws "``` ERROR Error: Uncaught (in promise): TypeError: Cannot read property ‘show’ of undefined
When the JS file is loaded immediately in the html (via <script src=...) the issue does not appear but if we load it several seconds after the app loads then we consistently see the above error.
I'm working on preparing a shareable app which clearly demonstrates reproducing this issue but in the meantime I'd appreciate any suggestions or thoughts on how this can be resolved.
Thanks,
Shlomo