Open EvanPiro opened 1 year ago
Hello @EvanPiro, there's a thread here where we finally realized what was happening there:
https://discourse.elm-lang.org/t/problem-building-dependencies-error-in-pipeline-solved/8755
The issue occurs intermittently when the Elm compiler is running multiple instances in parallel. elm-pages
is doing this to build the client bundle as well as the backend bundle (for resolving DataSources and rendering HTML for the pages in the build step).
I have a fix for this in the v3 beta, which will be going to a release candidate shortly. It might also make sense to do a hotfix for this issue in the v2 branch to avoid this problem before v3 is stable and while people migrate to v3.
If you do a clear cache and rerun build in Netlify it can sometimes resolve this issue. It can take a few tries, though. I believe that once a good cache is present the issue doesn't get triggered again with that set of dependencies because the issue comes from a race condition when multiple instances of the Elm compiler are trying to install the same dependency at the same time.
@dillonkearns 4th try did the trick.
I'm receiving the following error when I run a deployment via netlify on a clean elm-pages project. It does work on my local (
x86_64-darwin
). I'm digging into this but I wanted to post this issue in case there's an obvious fix to someone more familiar with netlify.