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
Creating a Native Module is failing at "Prebuilding the example app" step (MacOS)(Linux) #28189
Comments
I've tried a great deal of variations, including using Although I can get the prebuild to complete by adding the Can anyone help me get unstuck? I am attempting to bridge a native iOS SDK into Expo to workaround an issue with |
Tried using Found this while perusing the source code:
When I added the above code snippet to the Let me see if I can create a PR to correct the basic issue so the script will run on the first time. |
It appears that
I think removing this flag will likely fix the error:
|
I was able to fix the issue, test and confirm the fix locally, so I raised a PR: #28191 If we can merge this solution, then the issue will be officially closed. Can someone else confirm if they can repro the initial behavior? |
hi there! i think we don't fully support yarn v4 at the moment. when creating the example project with the command internally
removing the file and not pinning yarn v4 should do the trick. |
@Kudo it does not. Running in a new folder, using
|
@Kudo I want to make sure we're on the same page - the example you are looking at is the result of running It is the script that creates the module which is broken, I am not attempting to run any sort of script in the repository, just the basic script itself is not functional. |
Ah, I think it's this part: https://github.com/greynewell/expo-module-failure-example/blob/main/.yarnrc.yml React Native, in general, doesn't work with plug-and-play. It violates the fundamentals of how React Native projects are structured using packages containing native code and pointing native code to those files. I've created a fix to make For now, one thing you can try @greynewell is doing the last 2 steps manually, while also configure your project to use
Hope this might help! |
Summary
While following the tutorial, I'm getting the following error while running
yarn create expo-module x
:What platform(s) does this occur on?
Android, iOS, Web
SDK Version
50.0.15
Environment
Failing in two environments:
and
Minimal reproducible example
https://github.com/greynewell/expo-module-failure-example
The text was updated successfully, but these errors were encountered: