Vikash Yadav
Vikash Yadav

Reputation: 803

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- enter image description here

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.

Upvotes: 0

Views: 935

Answers (1)

Vikash Yadav
Vikash Yadav

Reputation: 803

Adding useBrowserLocale="true" in HTML properties solved the issue.

Upvotes: 1

Related Questions