react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

I got this error "Use of undeclared identifier 'jsi'; did you mean 'facebook::jsi'" After upgraded from React Native 0.68.2 to 0.69

Open scrgh opened this issue 3 years ago • 6 comments

Question

I created a new React Native 0.69 app for reproducing purpose and installed only react-native-vision-camera library for testing and I got this "Use of undeclared identifier 'jsi'; did you mean 'facebook::jsi'" when I did Xcode debug build.

What I tried

package-lock.json && rm -rf yarn.lock && rm -rf node_modules rm -rf ios/Podfile.lock && rm -rf ios/Pods npm i # or "yarn" cd ios && pod repo update && pod update && pod install

VisionCamera Version

2.13.5

Additional information

  • [ ] I am using Expo
  • [X] I have read the Troubleshooting Guide
  • [X] I agree to follow this project's Code of Conduct
  • [X] I searched for similar questions in the issues page as well as [in the discussions page](https://gith ub.com/mrousavy/react-native-vision-camera/discussions) and found none. Screen Shot 2022-06-24 at 8 09 53 AM

scrgh avatar Jun 24 '22 06:06 scrgh

I'm having the same issue after upgrading from react-native 0.67.2 to 0.69.0.

Tried spinning up a PR quickly but unfortunately have to put it on hold for now.

ricardonazario avatar Jun 24 '22 20:06 ricardonazario

CleanShot 2022-06-29 at 16 38 00 I have other issue with 0.69.1

mm-webx avatar Jun 29 '22 14:06 mm-webx

CleanShot 2022-06-29 at 16 38 00 I have other issue with 0.69.1

Same problem here

junioroga avatar Jul 01 '22 21:07 junioroga

CleanShot 2022-06-29 at 16 38 00 I have other issue with 0.69.1

Same problem here

Seems to be 0.69.1, not vision camera: https://github.com/facebook/react-native/issues/34102

icc-guerrero avatar Jul 02 '22 17:07 icc-guerrero

Similar/same issue here https://github.com/Shopify/react-native-skia/pull/629. Solved temporarily in my codebase by putting in the facebook:: namespace qualifier in JSConsoleHelper.mm. Also had to copy the bridging headers per the other 0.69 issue.

dminkovsky avatar Jul 05 '22 00:07 dminkovsky

If it's helpful to anyone, I had to create a local patch meanwhile this gets resolved.

In order to do that, you can always use patch-package. Just add to the JSConsoleHelper.mm, as described by @dminkovsky here, the facebook:: namespace.

I was even able to fix it for an expo eas build.

demogar avatar Sep 14 '22 00:09 demogar

Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (🥳) - if not, please create a new issue.

mrousavy avatar Sep 30 '23 09:09 mrousavy