nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.75k stars 2.37k forks source link

fix(react-native): default template fails when envs are not set #28931

Open maciekstosio opened 1 week ago

maciekstosio commented 1 week ago

Current Behavior

When envs are not set metro fails in .babelrc.js on process.env.NX_TASK_TARGET_TARGET.includes('storybook')

Expected Behavior

When envs are not set don't fail on the if and just precede.

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment | Name | Status | Preview | Updated (UTC) | | :--- | :----- | :------ | :------ | | **nx-dev** | ⬜️ Ignored ([Inspect](https://vercel.com/nrwl/nx-dev/3YWYT6kiqDH3MsXLSyNvmX1DVAkz)) | [Visit Preview](https://nx-dev-git-fork-maciekstosio-patch-2-nrwl.vercel.app) | Nov 14, 2024 10:08am |
nx-cloud[bot] commented 1 week ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 1853109cdb055e877d7b1d561b4ca02fc5c86f95. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 5 targets - [`nx affected --targets=lint,test,build,e2e,e2e-ci --base=668913e1ceb619a5cee04db712994e5ee3a01a12 --head=1853109cdb055e877d7b1d561b4ca02fc5c86f95 --parallel=3`](https://staging.nx.app/runs/rGTHBvsEbI?utm_source=pull-request&utm_medium=comment) - [`nx run-many -t check-imports check-commit check-lock-files check-codeowners documentation --parallel=1 --no-dte`](https://staging.nx.app/runs/QF22qmF0OU?utm_source=pull-request&utm_medium=comment) - [`nx-cloud record -- nx format:check --base=668913e1ceb619a5cee04db712994e5ee3a01a12 --head=1853109cdb055e877d7b1d561b4ca02fc5c86f95`](https://staging.nx.app/runs/G24ZOGtR0R?utm_source=pull-request&utm_medium=comment) - [`nx documentation --no-dte`](https://staging.nx.app/runs/QEpymvsk17?utm_source=pull-request&utm_medium=comment) - [`nx affected -t e2e-macos-local --parallel=1 --base=668913e1ceb619a5cee04db712994e5ee3a01a12 --head=1853109cdb055e877d7b1d561b4ca02fc5c86f95`](https://staging.nx.app/runs/52QibYMKlM?utm_source=pull-request&utm_medium=comment)

Sent with 💌 from NxCloud.