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

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

Open bj97301 opened this issue 1 year ago • 19 comments

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 avatar Dec 09 '23 17:12 bj97301

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",

jackculprit avatar Dec 27 '23 21:12 jackculprit

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

PierreAndreis avatar Jan 03 '24 01:01 PierreAndreis

Same for me!

christophemenager avatar Jan 11 '24 11:01 christophemenager

same

SerranoPablo avatar Jan 15 '24 09:01 SerranoPablo

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

xb1g avatar Jan 18 '24 12:01 xb1g

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

bj97301 avatar Jan 18 '24 13:01 bj97301

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

bj97301 avatar Mar 27 '24 21:03 bj97301

@wcandillon are you able to reproduce this issue?

bj97301 avatar Mar 27 '24 21:03 bj97301

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

bj97301 avatar Mar 29 '24 20:03 bj97301

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

bj97301 avatar Apr 12 '24 00:04 bj97301

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

christophemenager avatar Apr 14 '24 08:04 christophemenager

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

wcandillon avatar Apr 15 '24 06:04 wcandillon

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

jackculprit avatar Apr 22 '24 18:04 jackculprit

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.

klcantrell avatar May 22 '24 20:05 klcantrell

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?

garygcchiu avatar Jun 23 '24 21:06 garygcchiu

@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

natedevxyz avatar Jul 09 '24 03:07 natedevxyz

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

Indra-poudel avatar Aug 03 '24 13:08 Indra-poudel

same problem

Fungusjuice avatar Aug 11 '24 13:08 Fungusjuice