-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
React Native Metro: Ignoring packages during dependency resolution #18612
Comments
I am facing the same problem while trying to install I have used these commands to build the repo npx create-nx-workspace --preset=expo
npm install axios
yarn nx start undefiend and then found this error to reproduce: git clone https://github.com/atarek12/nx-expo-axios
cd nx-expo-axios
yarn install
yarn nx start undefiend |
in your app's metro.config.js, how about comment out the line: |
@david-gettins i think you can do something like this to override nx's resolve request:
|
Hi @xiongemi thank you for your suggestion, unfortunately it hasn't worked for me, this is the error specifically:
here is the entire metro config:
|
@lewisd1996 how about the nx config like
|
Hi @xiongemi thank you for getting back. Turns out it's a combination of issues with nx, React Native and AWS. This issue explains more. Downgrading aws-sdk packages gets us by for now. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Description
Certain packages need to be ignored during dependency resolution for Metro (http, https, zlib), depending on your Node version.
The solution outlined here facebook/metro#519, does not work with Nx, I'm guessing because of merging it into the Nx Metro config which overrides it.
Motivation
Needed in some instances to build the app successfully
The text was updated successfully, but these errors were encountered: