xcarpentier / rn-pdf-reader-js

📄 PDF reader in JavaScript only for Expo - Android & iOS capable
MIT License
388 stars 164 forks source link

Unable to install rn-pdf-reader-js on expo > 37 #137

Closed SatyamBansal closed 3 years ago

SatyamBansal commented 3 years ago

Issue Description

Unable to install rn-pdf-reader-js I have tried installing it first on expo 38 then on expo 39. Please Help.

Steps to Reproduce / Code Snippets

[FILL THIS OUT]

npm i rn-pdf-reader-js

Expected Results

It should get installed successfully on expo 36+ as mentioned in docs

Additional Information

image

AbeerAhmad commented 3 years ago

not able to install this dependancy ..facing the same error

theambidextrous commented 3 years ago

Did anyone find a solution to this?

SatyamBansal commented 3 years ago

Nope, I ended up installing it with --force flag, and somehow it worked. Also for me, it's throwing as an error only on node v15. I tried switching to node v14.16.0 LTS, and now it's only there as a warning not as an error anymore. So now I am using node 14.16.0 LTS for my work.

theambidextrous commented 3 years ago

I think the developer should provide a proper fix ..

I had to get it from another app that was using expo sdk36, then pasted it in node_modules of my sdk40 app, then i went on to download js-base64(which this library depends on ) manually and put it inside the node_modules of this library.

Now it works.

Kensidikenny commented 3 years ago

Just install with Yarn. Works well in expo 41

gregdburns commented 3 years ago

Just install with Yarn. Works well in expo 41

Same here, although using npm. No issues on Expo v 41.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.