sumn2u / react-typescript-pdf-reader

Pdf reader for create react app
https://sumn2u.github.io/react-typescript-pdf-reader/
MIT License
1 stars 4 forks source link

Can't resolve module after npm install #1

Open FloweryScythe13 opened 6 years ago

FloweryScythe13 commented 6 years ago

Module not found: Can't resolve 'react-typescript-pdf-reader' in 'C:\Users\brichem\.....\src\components'

I notice that there appears to be no valid entry point specified in package.json for the npm module. My install comes only with the /assests and /demo folders, not any others containing the distribution code. Perhaps this is the reason that Node cannot find the module for me?

sumn2u commented 6 years ago

@FloweryScythe13 are you sure react-typescript-pdf-reader is installed correctly? you can look into the node_modules folder, if it is installed correctly then it should show you other files too.

FloweryScythe13 commented 6 years ago

@sumn2u That's part of what I'm wondering. I have installed and uninstalled react-typescript-pdf-reader several times, and I can see it in the node_modules folder, but like I said, the installed package contains code only under the /assests and /demo folders. main in package.json points to a build/index.js file, but no path exists in the module. The whole installed module in node_modules looks like this:

This is happening on the NPM runkit too: https://npm.runkit.com/react-typescript-pdf-reader So maybe some of the needed files are missing in the NPM registry for react-typescript-pdf-reader?

tynarbekov commented 5 years ago

@FloweryScythe13 I have same problem now, could solve this problem ?

FloweryScythe13 commented 5 years ago

@tynarbekov From what I recall finding at the time, this repo's published npm package really is incomplete and broken. Only someone with the access necessary to update the package in the global npm registry can fix this. I'm guessing the only person who can do that is @sumn2u .

sumn2u commented 5 years ago

let me have a look into this @FloweryScythe13 @tynarbekov