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

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

Open coderwang123 opened this issue 11 months ago • 6 comments

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

coderwang123 avatar Jan 15 '25 03:01 coderwang123

Can you provide a reproduction?

wcandillon avatar Feb 06 '25 13:02 wcandillon

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

mobinni avatar Feb 12 '25 15:02 mobinni

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 avatar Feb 18 '25 12:02 madflanderz

@madflanderz I'm seeing this on Android only, I do run a monorepo maybe that's part of the issue?

mobinni avatar Feb 18 '25 16:02 mobinni

"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

kristian-nst avatar Apr 08 '25 09:04 kristian-nst

like @madflanderz I noticed that a completely clean build solves the issue.

wcandillon avatar Apr 15 '25 12:04 wcandillon

a clean build solves the issue, if you are still experiencing this issue, please send me a reproduction and I will reopen this

wcandillon avatar Jun 21 '25 14:06 wcandillon