infinitered / react-native-mlkit

The definitive MLKit wrapper for React Native and Expo
https://docs.infinite.red/react-native-mlkit/
190 stars 13 forks source link

yarn build fails #118

Closed dushko-murtovski closed 9 months ago

dushko-murtovski commented 9 months ago

Hi, i am getting this error message on yarn build:

yarn_build

then on run:android it says that:

Unable to resolve "@infinitered/react-native-mlkit-face-detection" from "app\screens\FaceDetectionScreen\FaceDetectionScreen.tsx"

Can you help?

trevor-coleman commented 9 months ago

I'm not able to reproduce it locally, but I'm on my Mac, so I wonder if it's a cross-platform issue. I'll give it a try on my windows machine later today and see if I can get to the same error.

trevor-coleman commented 9 months ago

I found this Stack-Overflow thread which seems to suggest it's an issue wth expo-modules on windows.

https://stackoverflow.com/questions/76791027/expo-module-scripts-not-working-on-windows-how-to-npm-install-successfully

dushko-murtovski commented 9 months ago

That was the problem. I created Windows subsystem for Linux, build the project and then i was able to run it from Windows directly. Thanks. The issue can be closed.

dushko-murtovski commented 9 months ago

Closed