<adf-viewer [showViewer]="true" [overlayMode]="true" [fileNodeId]="'d367023a-7ebe-4f3a-a7d0-4f27c43f1045'"></adf-viewer>
With simple hardcoded pdf doc id Viewer component fails. Please suggest resolution. Thanks.
core.js:1427 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'mimeType' of undefined
TypeError: Cannot read property 'mimeType' of undefined
at ViewerComponent.setUpNodeFile (adf-core.js:829)
at eval (adf-core.js:788)
at ZoneDelegate.invoke (zone.js:391)
at Object.onInvoke (core.js:4753)
at ZoneDelegate.invoke (zone.js:390)
at Zone.run (zone.js:141)
at eval (zone.js:831)
at ZoneDelegate.invokeTask (zone.js:424)
at Object.onInvokeTask (core.js:4744)
at ZoneDelegate.invokeTask (zone.js:423)
at ViewerComponent.setUpNodeFile (adf-core.js:829)
at eval (adf-core.js:788)
at ZoneDelegate.invoke (zone.js:391)
at Object.onInvoke (core.js:4753)
Solved! Go to Solution.
Are you sure the GUID is correct and you point to the PDF that exists? Trying to reproduce your issue by at my side Viewer displays everything correctly.
Would be interesting to get some more details, like ACS version, "node" details, etc.
Are you sure the GUID is correct and you point to the PDF that exists? Trying to reproduce your issue by at my side Viewer displays everything correctly.
Would be interesting to get some more details, like ACS version, "node" details, etc.
You can use GitHub - Alfresco/alfresco-content-app: Alfresco Example Content Application for testing purposes. It has a rich viewer integration.
I am an idiot. I used folder GUID. Thanks for the comment.
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.