expo: ERROR ReferenceError: Property 'SkiaApi' doesn't exist, js engine: hermes

Summary

This seems to be a regression and this issue was addressed in the past

Previously raised issue on the Skia repo: https://github.com/Shopify/react-native-skia/issues/106

and was addressed as part of this fix: https://github.com/expo/expo/pull/17780

For us the issue started happening after we upgraded to Expo SDK 49

Same behaviour as before - intermittently happening, fixed by pressing r

Managed or bare workflow?

managed

What platform(s) does this occur on?

iOS

Package versions

“expo-dev-client”: “~2.4.6”, “expo”: “~49.0.3”, “@shopify/react-native-skia”: “0.1.196”,

Environment

❯ npx expo-env-info

expo-env-info 1.0.5 environment info: System: OS: macOS 13.4.1 Shell: 5.9 - /bin/zsh Binaries: Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.1/bin/yarn npm: 8.19.2 - ~/.nvm/versions/node/v16.18.1/bin/npm Watchman: 2023.06.08.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /Users/ovidb/.rbenv/shims/pod SDKs: iOS SDK: Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4 IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.10121639 Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild npmPackages: @expo/webpack-config: ^18.1.1 => 18.1.1 expo: ~49.0.3 => 49.0.3 react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 react-native: 0.72.3 => 0.72.3 react-native-web: ~0.19.6 => 0.19.6 npmGlobalPackages: eas-cli: 3.16.0 expo-cli: 6.0.8 Expo Workflow: managed

Reproducible demo

N/A

Stacktrace (if a crash is involved)

ERROR ReferenceError: Property ‘SkiaApi’ doesn’t exist, js engine: hermes

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 12
  • Comments: 23 (2 by maintainers)

Most upvoted comments

Why this ticket is closed ? We still experience the problem

This error comes at random, it’s hard to determine the reproducible steps. This is still an issue, however, and you had to quit a development app and metro server to prevent it from occurring.

Same issue for me with the lastest expo (49.0.16), react-native-skia (0.1.214), and expo-dev-client (2.4.11)

This happens to me, and this started after I ran the expo fix dependencies, it changed the installed version of from “@shopify/react-native-skia”: “^0.1.212” to “@shopify/react-native-skia”: “0.1.196” after that this error happens randomly.

I can confirm that this happens. It’s indeed quite random… maybe some kind of race condition?

I’m also running into this issue. It seems to be pretty intermittent, which is making it much harder to debug.

Yup, started happening randomly as soon as I installed skia …

I used to run into this issue on a daily basis, SDK50 seems to have fixed the issue

The same is happening with my code. Sometimes it runs, sometimes it doesn’t. Anyone found a solution for this?