expo / expo/eas-cli

The second build will result in the file not being resolved correctly

Open
#2,959 2 comments 2 reactions 0 assignees View on GitHub
needs review
Dominant language
TypeScript
Stars
1.4k
Forks
236
Avg merge
3d 1h
Merged PRs (30d)
91

Description

### Build/Submit details page URL

_No response_

### Summary

My computer is running as a self-hosted runner for GitHub, and when I ran the build in GitHub Action twice, it had issues resolving the file correctly. After that I had to restart my computer to clear the cache files, and then it built fine.

- First build https://github.com/RSSNext/Folo/actions/runs/14014565158/job/39238580722?pr=3237
- Second build with no code changes https://github.com/RSSNext/Folo/actions/runs/14014630007/job/39238722699?pr=3237

Not sure if it is related to expo dom component, only the bundle of expo dom component will fail. It looks like it's always resolving to the path from the last build, but this is cleaned up after each build.

`eas --clear-cache` option has no effect.

After I used `export EAS_LOCAL_BUILD_SKIP_CLEANUP=1` to disable the cleanup, I noticed that the error command was `pnpm expo export:embed --eager --platform ios --dev false`, so I executed it manually in the directory and it gave the same error. If I add the `--reset-cache` option, everything works fine.

### Managed or bare?

bare

### Environment

```
expo-env-info 1.2.2 environment info:
System:
OS: macOS 15.3.2
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.14.0 - ~/.n/bin/node
npm: 10.9.2 - ~/.n/bin/npm
Watchman: 2025.03.10.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.2, iOS 18.2, macOS 15.2, tvOS 18.2, visionOS 2.2, watchOS 11.2
IDEs:
Android Studio: 2024.3 AI-243.22562.218.2431.13114758
Xcode: 16.2/16C5032a - /usr/bin/xcodebuild
npmGlobalPackages:
eas-cli: 16.0.1
Expo Workflow: bare
```

```
13/15 checks passed. 2 checks failed. Possible issues detected:
Use the --verbose flag to see more details about passed checks.

✖ Validate packages against React Native Directory package metadata
The following issues were found when validating your dependencies against React Native Directory:
Unsupported on New Architecture: react-native-track-player
Untested on New Architecture: react-native-bouncy-checkbox
Unmaintained: @gorhom/portal
No metadata available: @better-auth/expo, @expo/metro-runtime, @follow/components, @follow/constants, @follow/hooks, @follow/models, @follow/shared, @follow/utils, @hookform/resolvers, @tanstack/query-sync-storage-persister, @tanstack/react-query-persist-client, better-auth, cookie-es, dnum, es-toolkit, hono, immer, jotai, lru-cache, nanoid, ofetch, qrcode, react-error-boundary, react-native-color-matrix-image-filters, react-native-uikit-colors, shiki, tailwindcss, use-sync-external-store, usehooks-ts
Advice:
- Use libraries that are actively maintained and support the New Architecture. Find alternative libraries with https://reactnative.directory.
- Add packages to expo.doctor.reactNativeDirectoryCheck.exclude in package.json to selectively skip validations, if the warning is not relevant.
- Update React Native Directory to include metadata for unknown packages. Alternatively, set expo.doctor.reactNativeDirectoryCheck.listUnknownPackages in package.json to false to skip warnings about packages with no metadata, if the warning is not relevant.

✖ Check that packages match versions required by installed Expo SDK
The following packages should be updated for best compatibility with the installed expo version:
@react-native-picker/picker@2.11.0 - expected version: 2.9.0
expo-updates@0.27.3 - expected version: ~0.27.4
react-native-pager-view@6.7.0 - expected version: 6.5.1
react-native-reanimated@3.17.1 - expected version: ~3.16.1
react-native-svg@15.11.2 - expected version: 15.8.0
Your project may not work correctly until you install the expected versions of the packages.
Found outdated dependencies
Advice: Use 'npx expo install --check' to review and upgrade your dependencies.

2 checks failed, indicating possible issues with the project.
```

### Error output

```
[EAGER_BUNDLE] Unable to resolve module ./../../../../../4ff5e60f-e2cb-44d2-ba03-76fa19c4c7cc/build/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx from /private/var/folders/82/529kj4nj6rn6x82cd67khv180000gn/T/eas-build-local-nodejs/fc7bac91-11fd-4081-850c-9b2075af2ae7/build/node_modules/expo/dom/entry.js:
[EAGER_BUNDLE]
[EAGER_BUNDLE] None of these files exist:
[EAGER_BUNDLE] * ../../../../4ff5e60f-e2cb-44d2-ba03-76fa19c4c7cc/build/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx(.web.ts|.ts|.web.tsx|.tsx|.web.mjs|.mjs|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css|.web.sql|.sql|.web.css|.css)
[EAGER_BUNDLE] * ../../../../4ff5e60f-e2cb-44d2-ba03-76fa19c4c7cc/build/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx
[EAGER_BUNDLE] > 1 | // Contents of this file are generated in the transformer.
[EAGER_BUNDLE] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[EAGER_BUNDLE] 2 |
[EAGER_BUNDLE] Error: Unable to resolve module ./../../../../../4ff5e60f-e2cb-44d2-ba03-76fa19c4c7cc/build/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx from /private/var/folders/82/529kj4nj6rn6x82cd67khv180000gn/T/eas-build-local-nodejs/fc7bac91-11fd-4081-850c-9b2075af2ae7/build/node_modules/expo/dom/entry.js:
[EAGER_BUNDLE]
[EAGER_BUNDLE] None of these files exist:
[EAGER_BUNDLE] * ../../../../4ff5e60f-e2cb-44d2-ba03-76fa19c4c7cc/build/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx(.web.ts|.ts|.web.tsx|.tsx|.web.mjs|.mjs|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css|.web.sql|.sql|.web.css|.css)
[EAGER_BUNDLE] * ../../../../4ff5e60f-e2cb-44d2-ba03-76fa19c4c7cc/build/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx
[EAGER_BUNDLE] > 1 | // Contents of this file are generated in the transformer.
[EAGER_BUNDLE] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[EAGER_BUNDLE] 2 |
[EAGER_BUNDLE] Error: Unable to resolve module ./../../../../../4ff5e60f-e2cb-44d2-ba03-76fa19c4c7cc/build/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx from /private/var/folders/82/529kj4nj6rn6x82cd67khv180000gn/T/eas-build-local-nodejs/fc7bac91-11fd-4081-850c-9b2075af2ae7/build/node_modules/expo/dom/entry.js:
[EAGER_BUNDLE]
[EAGER_BUNDLE] None of these files exist:
[EAGER_BUNDLE] * ../../../../4ff5e60f-e2cb-44d2-ba03-76fa19c4c7cc/build/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx(.web.ts|.ts|.web.tsx|.tsx|.web.mjs|.mjs|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css|.web.sql|.sql|.web.css|.css)
[EAGER_BUNDLE] * ../../../../4ff5e60f-e2cb-44d2-ba03-76fa19c4c7cc/build/apps/mobile/src/components/ui/typography/MarkdownWeb.tsx
[EAGER_BUNDLE] > 1 | // Contents of this file are generated in the transformer.
[EAGER_BUNDLE] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[EAGER_BUNDLE] 2 |
[EAGER_BUNDLE] at ModuleResolver.resolveDependency (/private/var/folders/82/529kj4nj6rn6x82cd67khv180000gn/T/eas-build-local-nodejs/fc7bac91-11fd-4081-850c-9b2075af2ae7/build/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:114:15)
[EAGER_BUNDLE] at DependencyGraph.resolveDependency (/private/var/folders/82/529kj4nj6rn6x82cd67khv180000gn/T/eas-build-local-nodejs/fc7bac91-11fd-4081-850c-9b2075af2ae7/build/node_modules/metro/src/node-haste/DependencyGraph.js:248:43)
[EAGER_BUNDLE] at /private/var/folders/82/529kj4nj6rn6x82cd67khv180000gn/T/eas-build-local-nodejs/fc7bac91-11fd-4081-850c-9b2075af2ae7/build/node_modules/metro/src/lib/transformHelpers.js:165:21
[EAGER_BUNDLE] at resolveDependencies (/private/var/folders/82/529kj4nj6rn6x82cd67khv180000gn/T/eas-build-local-nodejs/fc7bac91-11fd-4081-850c-9b2075af2ae7/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:42:25)
[EAGER_BUNDLE] at visit (/private/var/folders/82/529kj4nj6rn6x82cd67khv180000gn/T/eas-build-local-nodejs/fc7bac91-11fd-4081-850c-9b2075af2ae7/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:83:30)
[EAGER_BUNDLE] at processTicksAndRejections (node:internal/process/task_queues:105:5)
[EAGER_BUNDLE] at async Promise.all (index 0)
[EAGER_BUNDLE] at buildSubgraph (/private/var/folders/82/529kj4nj6rn6x82cd67khv18
[EAGER_BUNDLE]
Error: pnpm expo export:embed --eager --platform ios --dev false exited with non-zero code: 1
at ChildProcess.completionListener (/Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/@expo/spawn-async/build/spawnAsync.js:42:23)
at Object.onceWrapper (node:events:633:26)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1101:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
...
at spawnAsync (/Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/@expo/spawn-async/build/spawnAsync.js:7:23)
at spawn (/Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/@expo/turtle-spawn/dist/index.js:16:47)
at runExpoCliCommand (/Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/@expo/build-tools/dist/utils/project.js:29:43)
at eagerBundleAsync (/Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/@expo/build-tools/dist/common/eagerBundle.js:10:43)
at /Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/@expo/build-tools/dist/builders/ios.js:105:58
at BuildContext.runBuildPhase (/Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/@expo/build-tools/dist/context.js:121:34)
at buildAsync (/Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/@expo/build-tools/dist/builders/ios.js:104:23)
at async runBuilderWithHooksAsync (/Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/@expo/build-tools/dist/builders/common.js:12:13)
at async Object.iosBuilder (/Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/@expo/build-tools/dist/builders/ios.js:34:16)
at async buildIosAsync (/Users/hyoban/.npm/_npx/a4ff5c16beb6b833/node_modules/eas-cli-local-build-plugin/dist/ios.js:44:12)
```

### Reproducible demo or steps to reproduce from a blank project

https://github.com/RSSNext/Folo/blob/dev/.github/workflows/build-eas.yml

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.