react-native-skia
react-native-skia copied to clipboard
ReferenceError: Property 'SkiaApi' doesn't exist, js engine: hermes
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.
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",
in my case it shows up after my app tries to recover from an error boundary. reloading the app fixes it.
Same for me!
same
I changed from bun to yarn and it's gone.
I use yarn and still get the error
On Thu, Jan 18, 2024 at 4:41 AM Bunyasit Fang @.***> wrote:
I changed from bun to yarn and it's gone.
— Reply to this email directly, view it on GitHub https://github.com/Shopify/react-native-skia/issues/2039#issuecomment-1898408717, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALCDP54J4AT635LIPXLZB3YPEKBPAVCNFSM6AAAAABAN6AK32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJYGQYDQNZRG4 . You are receiving this because you authored the thread.Message ID: @.***>
This bug is super annoying. Is there any way I can help get this fixed?
@wcandillon are you able to reproduce this issue?
@chrfalch watcha thinkn? Can I help in any way?
Does anyone on this thread have any tips on where I can start on fixing this?
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
@bj97301 please send us a small project where we can reproduce the issue.
It did eventually go away from me after updating tons of libs as well. Seems like the same happened for @christophemenager
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.
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?
@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 withcreate-expo-app
. - I installed
expo-build-properties
to enable the new architecture andexpo-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",
any updates on this ? I am facing the same issue after activate the new Architecture
same problem