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)
- Compile error HOT 4
- File re-renders or reloads each time any action happens on the page. HOT 2
- How do i get the erros?
- Can this library read the end of line?
- New FORK of this library (due to the inactivity of this repository) HOT 2
- invalid hook call HOT 16
- xlsx,docx,not supporting HOT 6
- Support CSV HOT 1
- Language recognition error
- Uncaught ReferenceError: DataStream is not defined
- file type
- Can not load different files of same type
- Relative imports outside of src/ are not supported HOT 1
- Charge Money
- resolve you may need an appropriate loader to handle this file type , currently no loaders are configured to process this file."
- Could not open file using S3 signed URL HOT 6
- window is not defined in SSR HOT 3
- 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
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.