wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.57k stars 533 forks source link

v6.6.0 bundle is broken #673

Open 6youss opened 1 year ago

6youss commented 1 year ago

hello @wonday i just upgraded to v6.6.0 i see that main entry in package.json points to dist/index.js but there's no dist/index.js file in the react-native-pdf in node_modules

wonday commented 1 year ago

Please try v6.6.1 to confirm it works or not.

Awais-khalid06 commented 1 year ago

@wonday still V6.6.1 is not working.... After updating version to 6.6.1 i have Face some issue mention below ** Error: While trying to resolve module react-native-pdf from file E:\P\Osama_Raza_books\screens\BookReading.js, the package E:\P\Osama_Raza_books\node_modules\react-native-pdf\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (E:\P\Osama_Raza_books\node_modules\react-native-pdf\index.js. Indeed, none of these files exist:

billnbell commented 1 year ago

Yeah does not work. 6.6.1 - I reverted to 6.5.0

 error TS2604: JSX element type 'Pdf' does not have any construct or call signatures.

66       <Pdf style={styles.pdf} source={{ uri }} onError={(error) => log.error('Error on PDF load', error)} />
marcshilling commented 1 year ago

FYI: There's a 6.6.2 on npm now that seems to be working for me!

Awais-khalid06 commented 1 year ago

Right now its is working

srazzz commented 10 months ago

Hello everyone,

I'm encountering with the same error. This is my environment. Any help would be appreciated, Thanks in advance.

System: OS: Windows 10 10.0.22621 CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz Memory: 4.68 GB / 15.78 GB Binaries: Node: 14.18.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: AI-213.7172.25.2113.9123335 Visual Studio: Not Found Languages: Java: 11.0.18 Python: 3.10.11 npmPackages: @react-native-community/cli: Not Found react: ~16.9. WhatsApp Image 2023-09-07 at 17 11 42 0 => 16.9.0 react-native: ~0.62.0 => 0.62.3 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found