简体   繁体   中英

TypeError: Cannot set property 'setHash' of null

While displaying pdf file in Angular 6 using ngx-extended-pdf-viewer , I am getting an error in console as shown below- 在此处输入图片说明

html -

<ngx-extended-pdf-viewer src="assets/dataset/doc_2.pdf" id="idocument" type="application/pdf" width="100%"></ngx-extended-pdf-viewer>

Tried adding delayFirstView="1000" in the properties in html but not working.

I have same confiuration as suggested on this page.

在HTML属性中添加useBrowserLocale="true"解决了该问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM