Closed pankaj-maurya closed 3 years ago
Hi @pankaj-maurya,
Thanks for reaching out, it seems npm
had some issue resolving pdfjs lib. Can you please try using yarn
as our README suggested?
Please let me know if this issue persisted with yarn
, thanks!
Hi @buddhawang ,
Thanks for your prompt response.
I tried using yarn
as README suggested. Followed below steps -
Yarn install
Yarn start
But getting same error.
I am using windows 10 ( version : 1909, 64 bit OS) machine
I just downloaded zipped code from repository ant it worked fine.
Hence closing the issue.
Describe the bug TypeError: Cannot read property 'GlobalWorkerOptions' of undefined Module../src/react/components/pages/prebuiltPredict/LoadFileHelper.ts E:/WORKING_PROJECTS/ATREYA-LABS/OCR-Form-Tools/src/react/components/pages/prebuiltPredict/LoadFileHelper.ts:7 4 | import HtmlFileReader from "../../../../common/htmlFileReader"; 5 | import {loadImageToCanvas, parseTiffData, renderTiffToCanvas} from "../../../../common/utils"; 6 |
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.![image](https://user-images.githubusercontent.com/5041923/111251384-558c1b00-85cc-11eb-9655-72848d984cca.png)
Desktop (please complete the following information):
Additional context I tried importing pdfjslib from build folder but that too is not working.
import * as pdfjsLib from "pdfjs-dist/build/pdf";