cyntler / cyntler/react-doc-viewer

Unable to render doc from https URL

Open
#218 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

**Unable to render doc from https URL**

Whilre trying to load a docx file via a signed url, it throws the below Exception:

```
Failed to compile.

./node_modules/pdfjs-dist/build/pdf.js 389:20
Module parse failed: Unexpected token (389:20)
You may need an appropriate loader to handle this file type.
| }
| function _isValidProtocol(url) {
> switch (url?.protocol) {
| case "http:":
| case "https:":
```

Screenshot

Anyways to resolve this issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.