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

RN Skia not working with EAS build (dev-client) in Expo #477

Closed
11CaptainKirk opened this issue May 15, 2022 · 5 comments
Closed

RN Skia not working with EAS build (dev-client) in Expo #477

11CaptainKirk opened this issue May 15, 2022 · 5 comments
Assignees

Comments

@11CaptainKirk
Copy link

When using EAS build in Expo with react-native-skia the following errors are returned:

ReferenceError: Can't find variable: SkiaApi
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:95:4 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:141:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError
at node_modules/metro-runtime/src/polyfills/require.js:203:6 in guardedLoadModule
at http://192.168.1.237:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false&strict=false&minify=false:152739:3 in global code

Invariant Violation: "main" has not been registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called.

at node_modules/react-native/Libraries/Core/ExceptionsManager.js:95:4 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:141:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError

I have read that with expo-dev-clients RN Skia is usable with Expo, but I haven't been able to make it work.

@wcandillon
Copy link
Contributor

Are there anything interesting logs you could share that would be useful to us? Does the project builds nicely? We haven't tried expo-dev clients yet but we might give it a try

@11CaptainKirk
Copy link
Author

11CaptainKirk commented May 17, 2022

@wcandillon Upon closer inspection I found that during the build the error mentioned in #405 occurs. Other than that it seems to work fine and the error above is thrown when the app is first opened. I have heard that for some people it works without a hitch but I haven't had that success.

@chrfalch chrfalch self-assigned this May 19, 2022
@Norfeldt
Copy link

@wcandillon it would be fantastic to see how you use the expo-dev client to develop skia with expo tools 🙌

@wcandillon
Copy link
Contributor

It looks like we may have fixed this part of v0.1.128. Please re-open if you have issues with this?

@alexvcasillas
Copy link

Hey @wcandillon it seems like this error is happening again intermittently

 ERROR  ReferenceError: Property 'SkiaApi' doesn't exist, js engine: hermes
    at ContextNavigator (http://192.168.1.41:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true:151441:24)
    at ExpoRoot (http://192.168.1.41:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true:151412:30)
    at App
    at withDevTools(App) (http://192.168.1.41:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true:131070:27)
    at ErrorToastContainer (http://192.168.1.41:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true:130971:24)
    at ErrorOverlay
    at RCTView
    at View (http://192.168.1.41:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true:40316:43)
    at RCTView
    at View (http://192.168.1.41:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true:40316:43)
    at AppContainer (http://192.168.1.41:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true:40156:36)
    at main(RootComponent) (http://192.168.1.41:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true:121451:28)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants