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

Fork the react-native's babel preset and remove peer dependencies and use this in the expo preset #2958

Closed
brentvatne opened this issue Dec 11, 2018 · 2 comments

Comments

@brentvatne
Copy link
Member

Currently when you initialize a new project there are a bunch of warnings about missing peer dependencies. This is not very useful and it's easy to fix.

@DianaLaa
Copy link

Chiming in to mention the actual warnings

npm WARN expo-google-sign-in@2.0.0 requires a peer of react-native@^0.55.4 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated@1.0.0-alpha.11 requires a peer of react@16.0.0-alpha.6 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated@1.0.0-alpha.11 requires a peer of react-native@^0.44.1 but none is installed. You must install peer dependencies yourself.
npm WARN url-loader@1.1.2 requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

Also mentioned here by someone else, who has these errors with every package they try to install: https://stackoverflow.com/questions/54135379/unable-to-install-react-navigation-package-using-npm

@FiberJW
Copy link
Contributor

FiberJW commented Jan 6, 2020

This seems to be resolved, so I’ll close this for now. I tested by initializing a new Expo project and I didn't run into any messy peer dependency warnings using yarn. If it is not the case that this is fixed, feel free to reopen or create a new issue :)

@FiberJW FiberJW closed this as completed Jan 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants