Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: Property 'SkiaApi' doesn't exist, js engine: hermes #2039

Open
bj97301 opened this issue Dec 9, 2023 · 20 comments
Open

ReferenceError: Property 'SkiaApi' doesn't exist, js engine: hermes #2039

bj97301 opened this issue Dec 9, 2023 · 20 comments
Labels
bug Something isn't working

Comments

@bj97301
Copy link

bj97301 commented Dec 9, 2023

Description

I get this randomly when saving and auto-refreshing in expo 49 with ios. android seems to work fine.

Version

1.0.4

Steps to reproduce

hit save on a js file then wait for the app to reload.

expected: no error

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

Snack, code example, screenshot, or link to a repository

should be happening to most people's projects. If not ill whip up a snack.

@bj97301 bj97301 added the bug Something isn't working label Dec 9, 2023
@jackculprit
Copy link

I'm using a bare react native app, and this is happening to me too.

"react-native": "0.72.6",
"react": "18.2.0",
"@shopify/react-native-skia": "^0.1.230",

@PierreAndreis
Copy link

PierreAndreis commented Jan 3, 2024

in my case it shows up after my app tries to recover from an error boundary. reloading the app fixes it.

@christophemenager
Copy link

Same for me!

@SerranoPablo
Copy link

same

@xb1g
Copy link

xb1g commented Jan 18, 2024

I changed from bun to yarn and it's gone.

@bj97301
Copy link
Author

bj97301 commented Jan 18, 2024 via email

@bj97301
Copy link
Author

bj97301 commented Mar 27, 2024

This bug is super annoying. Is there any way I can help get this fixed?

@bj97301
Copy link
Author

bj97301 commented Mar 27, 2024

@wcandillon are you able to reproduce this issue?

@bj97301
Copy link
Author

bj97301 commented Mar 29, 2024

@chrfalch watcha thinkn? Can I help in any way?

@bj97301
Copy link
Author

bj97301 commented Apr 12, 2024

Does anyone on this thread have any tips on where I can start on fixing this?

@christophemenager
Copy link

I did not had this problem again, maybe because I upgraded to the latest version of skia and expo and reanimated? I am not sure why but I would try upgrading all libs involved first

@wcandillon
Copy link
Contributor

@bj97301 please send us a small project where we can reproduce the issue.

@jackculprit
Copy link

It did eventually go away from me after updating tons of libs as well. Seems like the same happened for @christophemenager

@klcantrell
Copy link

klcantrell commented May 22, 2024

I encountered this today after updating Expo from 50 to 51 and updating a few other dependencies as well. I could only surface the error twice or so (full reloading on iOS), and haven't been able to resurface it since. If I can reliably reproduce it, I'll try to distill and send a small reproduction repo.

@garygcchiu
Copy link

garygcchiu commented Jun 23, 2024

Running into this issue :(. It happens VERY consistently for me, I'm unable to reload my apps (pressing r on the expo server or iOS simulator) without running into this issue each time.

"@shopify/react-native-skia": "~1.2.3",
"expo": "^51.0.14",
"react": "18.2.0",
"react-native": "0.74.2",
"react-native-reanimated": "~3.10.1",
"react-native-gesture-handler": "~2.16.1",

Running expo-doctor via npx expo-doctor@latest on EAS and says my dependencies are on the correct versions. I've also re-built my development client a few times, using EAS.

Anyone have any idea of potential workarounds?

@natedevxyz
Copy link

@bj97301 please send us a small project where we can reproduce the issue.

I was able to reproduce the error consistently so I created a project and uploaded it to a public repository here

  • I started with a blank-typescript template with create-expo-app.
  • I installed expo-build-properties to enable the new architecture and expo-dev-client.
  • I added react-native-skia "Hello World" and it worked.
  • I added expo-router and the app started showing the "Property 'SkiaApi' doesn't exist" error.
"@shopify/react-native-skia": "~1.3.8",
"expo": "^51.0.18",
"react": "18.2.0",
"react-native": "0.74.3",
"react-native-reanimated": "~3.10.1",
screenshot

@Indra-poudel
Copy link

any updates on this ? I am facing the same issue after activate the new Architecture

@Fungusjuice
Copy link

same problem

@lucaspelloni2
Copy link

Facing the same problem as well

@davidhagg
Copy link

Same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests