rn 0.70.15 Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNSkiaModule' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes
Description
"react": "18.1.0",
"react-native": "0.70.15",
"react-native-gesture-handler": "^2.21.2",
"react-native-reanimated": "2.12.0",
use "@shopify/react-native-skia": "^1.10.1", is error
Running "fule" with {"rootTag":1} ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNSkiaModule' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes at SkiaComponent (http://10.0.10.155:9999/index.bundle//&platform=android&dev=true&minify=false&app=com.fule&modulesOnly=false&runModule=true:284070:37) at anonymous (http://10.0.10.155:9999/index.bundle//&platform=android&dev=true&minify=false&app=com.fule&modulesOnly=false&runModule=true:283964:37) at RCTView at View at RCTView at View at RCTScrollView at ScrollView (http://10.0.10.155:9999/index.bundle//&platform=android&dev=true&minify=false&app=com.fule&modulesOnly=false&runModule=true:80116:36) at ScrollView at RNGestureHandlerRootView at GestureHandlerRootView (http://10.0.10.155:9999/index.bundle//&platform=android&dev=true&minify=false&app=com.fule&modulesOnly=false&runModule=true:162429:21) at RCTView at View at App (http://10.0.10.155:9999/index.bundle//&platform=android&dev=true&minify=false&app=com.fule&modulesOnly=false&runModule=true:92170:54) at RCTView at View at RCTView at View at AppContainer (http://10.0.10.155:9999/index.bundle//&platform=android&dev=true&minify=false&app=com.fule&modulesOnly=false&runModule=true:84015:36) at fule(RootComponent) (http://10.0.10.155:9999/index.bundle//&platform=android&dev=true&minify=false&app=com.fule&modulesOnly=false&runModule=true:88570:28)
React Native Skia Version
1.10.1
React Native Version
0.70.15
Using New Architecture
- [ ] Enabled
Steps to Reproduce
1
Snack, Code Example, Screenshot, or Link to Repository
1
Can you provide a reproduction?
@wcandillon we are seeing the same thing on our end when installing. I tried manually linking as well, we have a mono-repo setup. Flashlist has had no issues linking but we get an error
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNSkiaModule' could not be found. Verify that a module by this name is registered in the native binary.
I had the same error and it was caused by an old bundle on the simulator. Ensure that you are really re-building.
- yarn install
- yarn prebuild
- uninstall app from Simulator (this was important)
- yarn ios
@madflanderz I'm seeing this on Android only, I do run a monorepo maybe that's part of the issue?
"uninstall app from Simulator (this was important)"
surprisingly this worked, even tho "expo run ios" should replace it completely 🤔 possibly running the bundler with "--clear" might have helped
thanks
like @madflanderz I noticed that a completely clean build solves the issue.
a clean build solves the issue, if you are still experiencing this issue, please send me a reproduction and I will reopen this