react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

v6.6.0 bundle is broken

Open 6youss opened this issue 3 years ago • 6 comments

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

6youss avatar Jul 30 '22 16:07 6youss

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

wonday avatar Jul 30 '22 17:07 wonday

@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:

  • E:\P\Osama_Raza_books\node_modules\react-native-pdf\index.js(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  • E:\P\Osama_Raza_books\node_modules\react-native-pdf\index.js\index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx) at DependencyGraph.resolveDependency (E:\P\Osama_Raza_books\node_modules\metro\src\node-haste\DependencyGraph.js:243:17) at Object.resolve (E:\P\Osama_Raza_books\node_modules\metro\src\lib\transformHelpers.js:129:24) at resolve (E:\P\Osama_Raza_books\node_modules\metro\src\DeltaBundler\traverseDependencies.js:396:33) at E:\P\Osama_Raza_books\node_modules\metro\src\DeltaBundler\traverseDependencies.js:412:26 at Array.reduce () at resolveDependencies (E:\P\Osama_Raza_books\node_modules\metro\src\DeltaBundler\traverseDependencies.js:411:33) at processModule (E:\P\Osama_Raza_books\node_modules\metro\src\DeltaBundler\traverseDependencies.js:140:31) at async addDependency (E:\P\Osama_Raza_books\node_modules\metro\src\DeltaBundler\traverseDependencies.js:230:18) at async Promise.all (index 3) at async processModule (E:\P\Osama_Raza_books\node_modules\metro\src\DeltaBundler\traverseDependencies.js:198:5)**

Awais-khalid06 avatar Jul 31 '22 05:07 Awais-khalid06

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)} />

billnbell avatar Jul 31 '22 05:07 billnbell

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

marcshilling avatar Aug 03 '22 20:08 marcshilling

Right now its is working

Awais-khalid06 avatar Aug 04 '22 15:08 Awais-khalid06

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

srazzz avatar Sep 07 '23 11:09 srazzz