-
Notifications
You must be signed in to change notification settings - Fork 275
Open
Labels
Description
Before submitting a new issue
- I tested using the latest version of the library, as the bug might be already fixed.
- I tested using a supported version of react native.
- I checked for possible duplicate issues, with possible answers.
Bug summary
Crashes on iOS on old arch:
When the line "let file = await generatePDF(options);" runs it crashes with error:
{ [Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'HtmlToPdf' could not be found. Verify that a module by this name is registered in the native binary.] name: 'Invariant Violation', framesToPop: 1 }
I have clean rebuild everything. Still the same error.
I have downgraded back to version 0.12 and it is working as it should as before.
On Android it is working with the latest version also on old arch.
Library version
1.3.0
Environment info
System:
OS: Windows 11 10.0.26100
CPU: "(16) x64 AMD Ryzen 7 5800X 8-Core Processor "
Memory: 25.34 GB / 63.92 GB
Binaries:
Node:
version: 24.8.0
path: C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm:
version: 11.6.0
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java:
version: 17.0.8.1
path: /cygdrive/c/Program Files/Eclipse Adoptium/jdk-17.0.8.101-hotspot/bin/javac
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.4
wanted: 0.81.4
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not foundSteps to reproduce
- Build Pods with old arch = RCT_NEW_ARCH_ENABLED=0 pod install
- When the line "let file = await generatePDF(options);" runs it crashes with error:
{ [Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'HtmlToPdf' could not be found. Verify that a module by this name is registered in the native binary.] name: 'Invariant Violation', framesToPop: 1 }
Reproducible example repository
default react-native app
granitebps and mripqi