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

Unable to find certain map files #56

Open
robbertrosario opened this issue Sep 6, 2022 · 3 comments
Open

Unable to find certain map files #56

robbertrosario opened this issue Sep 6, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@robbertrosario
Copy link

I have a repo with around 7 apps and bunch of packages but sometimes the EAS actions (or a simple expo install within an app directory) fail with the commands being unable to find a .map file.

Error: ENOENT: no such file or directory, open /Users/something/app/packages/utils/build/module/formatDateDefault.js.map

It is kinda of weird because I can see the file being there on my filesystem. When the actions fail with the same issue, I can usually resolve it by simply running that action again and then it works.

Does anyone else experience this?

@robbertrosario robbertrosario added the bug Something isn't working label Sep 6, 2022
@byCedric
Copy link
Owner

Do you run the build command that generates these map files, in EAS or only locally?

@robbertrosario
Copy link
Author

I am building the app thru the workflow actions which I haven't changed and are the same as seen in this repo. Should I build in EAS before starting the workflow actions?

@byCedric
Copy link
Owner

byCedric commented Sep 25, 2022

One thing you can try is also building the packages inside EAS. With that, you should be confident all build output is available when building the app.

You can add a Build lifecycle hook, specifically the eas-build-post-install script. If you add something like this to your app's package.json, it should build the repository before building your app.

"scripts": {
  "eas-build-post-install": "yarn workspaces run build"
}

Assuming you still use the yarn version of this repository. See this file for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants