christopherdro / christopherdro/react-native-html-to-pdf
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'HtmlToPdf' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes
- Dominant language
- Kotlin
- Stars
- 461
- Forks
- 273
- PR merge metrics
- No merged PRs in 30d
Description
### Before submitting a new issue
- [x] I tested using the latest version of the library, as the bug might be already fixed.
- [x] I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native.
- [x] I checked for possible duplicate issues, with possible answers.
### Bug summary
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'HtmlToPdf' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes getting this even after installing properly
### Library version
1.3.0
### Environment info
```shell
PS D:\honda_showroom_app> react-native info
(node:276) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.19045
CPU: (4) x64 Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
Memory: 1.23 GB / 15.92 GB
Binaries:
Node:
version: 20.19.0
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.22
path: C:\Users\GODAVARIWAVE\AppData\Roaming\npm\yarn.CMD
npm:
version: 10.8.2
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-242.23726.103.2422.13016713
Visual Studio: Not Found
Languages:
Java:
version: 17.0.14
path: C:\Program Files\Microsoft\jdk-17.0.14.7-hotspot\bin\javac.EXE
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 18.0.0
wanted: 18.0.0
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.79.0
wanted: 0.79.0
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
info React Native v0.86.0 is now available (your project is running on v0.79.0).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.86.0
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.79.0&to=0.86.0
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".
PS D:\honda_showroom_app>
```
### Steps to reproduce
1. …
2. …
### Reproducible example repository
PS D:\honda_showroom_app> react-native info (node:276) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) info Fetching system and libraries information... System: OS: Windows 10 10.0.19045 CPU: (4) x64 Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz Memory: 1.23 GB / 15.92 GB Binaries: Node: version: 20.19.0 path: C:\Program Files\nodejs\node.EXE Yarn: version: 1.22.22 path: C:\Users\GODAVARIWAVE\AppData\Roaming\npm\yarn.CMD npm: version: 10.8.2 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: AI-242.23726.103.2422.13016713 Visual Studio: Not Found Languages: Java: version: 17.0.14 path: C:\Program Files\Microsoft\jdk-17.0.14.7-hotspot\bin\javac.EXE Ruby: Not Found npmPackages: "@react-native-community/cli": installed: 18.0.0 wanted: 18.0.0 react: installed: 19.0.0 wanted: 19.0.0 react-native: installed: 0.79.0 wanted: 0.79.0 react-native-windows: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: Not found newArchEnabled: Not found info React Native v0.86.0 is now available (your project is running on v0.79.0). info Changelog: https://github.com/facebook/react-native/releases/tag/v0.86.0 info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.79.0&to=0.86.0 info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows". PS D:\honda_showroom_app>
Contributor guide
Research direction
The issue names no source file, test, or reproducible repository; start by reproducing the HtmlToPdf registration error in an Android React Native 0.79 project with library version 1.3.0. Check the native module integration and build configuration, then confirm that the app can access HtmlToPdf without the TurboModuleRegistry invariant.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100