Open mka142 opened 3 years ago
I am getting the same issue, can anyone help here. @mattmogford-alcumus
I'm facing the same issue
Same for me as well, using CRA!
NPM version: 7.16
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.
I don't why, but if you run install from the yarn as yarn install
all will work perfectly.
I'm encountering the same issue.
Install the package using yarn
yarn add react-doc-viewer
Install the package using
yarn
yarn add react-doc-viewer
Works, Thank you!!
Did anyone fiugre out how to install this with NPM and not have this issue?
In my case it got resolved by deleting node-modules and then install with yarn.
https://www.npmjs.com/package/@cyntler/react-doc-viewer is working fine for me
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?
Hi! I tried to use
react-doc-viwer
in my react project, but I come across on this issue:I tried to change versions of react, adding separate react in peerDependencies. react-doc-viwer use
react@16.14.0
andreact-dom@16.14.0
so in theory it support hooks. If it's not problem with : Mismatching Versions of React and React DOM , I don't know what is going on...paskage.json
My function to render was just simply copied from the example.