Comments (12)
Install the package using yarn
yarn add react-doc-viewer
from react-doc-viewer.
I am getting the same issue, can anyone help here. @mattmogford-alcumus
from react-doc-viewer.
https://www.npmjs.com/package/@cyntler/react-doc-viewer is working fine for me
from react-doc-viewer.
I don't why, but if you run install from the yarn as yarn install
all will work perfectly.
from react-doc-viewer.
I'm facing the same issue
from react-doc-viewer.
Same for me as well, using CRA!
NPM version: 7.16
from react-doc-viewer.
For those who are still looking into this issue, it seems like this package has some sort of incompatibilities with the latest Node versions or NPM versions.
What fixed it for me is downgrading my Node version from 16.3.0 -> 10.24.1 (with npm 7.15.1 -> 6.14.12). There was no react hook error since, and the component rendered properly.
from react-doc-viewer.
I'm encountering the same issue.
from react-doc-viewer.
Install the package using
yarn
yarn add react-doc-viewer
Works, Thank you!!
from react-doc-viewer.
Did anyone fiugre out how to install this with NPM and not have this issue?
from react-doc-viewer.
In my case it got resolved by deleting node-modules and then install with yarn.
from react-doc-viewer.
I was able to successfully test my project using npm, but when I attempted to integrate it into my main app, I encountered the same error. However, I am unable to switch to using yarn for a solution. Do you have any ideas for helping me resolve this issue?
from react-doc-viewer.
Related Issues (20)
- Error: Invalid hook call. Hooks can only be called inside of the body of a function component. HOT 3
- local files not rendering HOT 2
- For PDF Files, set a default Zoom level
- DOMException: The user aborted a request. HOT 1
- how to add custom zoom ?
- Support for AWS.storage.geturl() HOT 1
- XLSX, DOCX, PPTX not working HOT 1
- Docx, Doc file is not working i am passing base64data URI
- Doc viewer buttons submit form
- pdfjs-dist-2.4.456.tgz: 1 vulnerabilities (highest severity is: 8.8) - autoclosed HOT 1
- react-pdf-5.0.0.tgz: 2 vulnerabilities (highest severity is: 8.8) - autoclosed HOT 1
- react-pdf-8.0.2.tgz: 1 vulnerabilities (highest severity is: 8.8) - autoclosed HOT 1
- License Policy Violation detected in picocolors-1.0.1.tgz - autoclosed HOT 1
- Dependency Dashboard
- Conent is repeating without styling
- Not working with Next JS version (0.1.11) HOT 2
- API "3.11.174" and Worker "4.2.67" Version Mismatch HOT 7
- ERR_REQUIRE_ESM error while the package is trying to import the pdf.worker.min.js
- pdfjs的cMapUrl问题该如何解决?
- Unable to resolve path to module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-doc-viewer.