EAS Build (Bare): Unable to Resolve Module

My app builds in the Android emulator but it fails to build using eas build (Android).

Using eas build, the build fails because it’s unable to resolve a file. However, the file exists and is located at the same directory level as App.js.

It seems like a caching problem with EAS. Is there a command to tell EAS to re-read a project’s files?


The error is:

Unable to resolve module ./secret-od.js from App.js:

None of these files exist:

  • secret-od.js(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)

  • secret-od.js/index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts

EAS Build only uploads files visible to git + credentials if you are using credentials.json(that is why commit is necessary before running builds)