Closed jaquinocode closed 2 years ago
I used git to hard reset back to the point right before I ran the install-expo-modules command. (The install-expo-modules command had changed some native files before exiting with the error.)
Then I ran yarn add expo@">=44.0.0-* <45.0.0"
directly in the project root. (I wrapped the version around with double quotes because zsh was giving errors without them.) The result was that I got the same error as when running npx install-expo-modules
. Here's the result of the command:
ja@mac:~/code/react-native/projects/copper/@app/mobile$ yarn add expo@">=44.0.0-* <45.0.0"
➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: expo@>=44.0.0-* <45.0.0 isn't supported by any available resolver
at Xc.getResolverByDescriptor (/Users/ja/code/react-native/projects/copper/.yarn/releases/yarn-3.0.2.cjs:294:5330)
at Xc.bindDescriptor (/Users/ja/code/react-native/projects/copper/.yarn/releases/yarn-3.0.2.cjs:294:4719)
at p (/Users/ja/code/react-native/projects/copper/.yarn/releases/yarn-3.0.2.cjs:303:6959)
at async Promise.all (index 6)
at async Fe.resolveEverything (/Users/ja/code/react-native/projects/copper/.yarn/releases/yarn-3.0.2.cjs:303:8166)
at async /Users/ja/code/react-native/projects/copper/.yarn/releases/yarn-3.0.2.cjs:306:2135
at async xe.startTimerPromise (/Users/ja/code/react-native/projects/copper/.yarn/releases/yarn-3.0.2.cjs:275:3730)
at async Fe.install (/Users/ja/code/react-native/projects/copper/.yarn/releases/yarn-3.0.2.cjs:306:2074)
at async /Users/ja/code/react-native/projects/copper/.yarn/releases/yarn-3.0.2.cjs:311:122
at async Function.start (/Users/ja/code/react-native/projects/copper/.yarn/releases/yarn-3.0.2.cjs:275:2287)
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 0s 165ms
Based off of this, the problem seems clearly related to yarn.
hi there! thanks for reporting this issue. #4130 addressed the issue. will let you know after we published new install-expo-modules
.
No problem, thank you!
@jaquinocode the new install-expo-modules was published. you can try to run npx install-expo-modules
again when you get a chance. thank you!
@Kudo Thank you!
Is it possible to run install-expo-modules in android gradle 6.xxx ? If it is, please let me know how to use it in android gradle 6.xxx.
I confirmed it works fine in android gradle 7.xxx . react-native-appearance that I am using does not work in gradle 7.xxx .
So, I want to run install-expo-modules in android gradle 6.xxx.
@s570908 react-native-appearance is deprecated in favor of the appearance from react-native. for newer gradle support, we will add support soon when we release expo sdk 45.
Summary
What I did
I have a React Native project (a project created with the
react native
cli). This project does not have unimodules or the expo package or anything like that. It's just a React Native project created with thereact native
cli.I ran
npx install-expo-modules
in the project root.What I expected
For the command to succeed.
What actually happened
I got an error. (See the error message I copy-pasted.) The error to me clearly seems due to a yarn error. (Read the comment reply to this post to see what I'm talking about.)
I also assume this is due to yarn because I'm using the new yarn (yarn berry), not yarn classic. And I know that the new yarn is typically not used in React Native projects right now. But who knows, maybe the problem happens on yarn classic too.
Environment
Please specify your device/emulator/simulator platform, model and version
N/A
Error output
Reproducible demo or steps to reproduce from a blank project
I can't share my project as it's part of the company I work for so I can't give exact code to reproduce.
However, seeing as I assume this is a problem with using the latest yarn (yarn berry), you can try to reproduce this yourself:
react-native
cli.npx install-expo-modules
oryarn add expo@">=44.0.0-* <45.0.0"
in the project root. (Either command will give the error.)But maybe this error happens using classic yarn too. I wouldn't know since I haven't tested that out.