3

I ask this because the building failure is abnormal. It happens frequently since this week, and the cause is ELIFCYCLE. Here are some details about this issue:

  • Platform: AWS Amplify
  • Language: React.js
  • Cause: the cause is not clear according to the error log, but it seems to be ELIFECYCLE. (please refer to the attached error log)

enter image description here

For more details: This issue occurred 4 times since this week, but never occurred in previous several months. The code was runnable on local even it caused failure on Amplify, (we tested the code causing the failure on different developers' locals every time, and there was no error report and the program worked). The error happens stochastically, as 4 different developers working on different part of the system meet this same issue when they push to the branch.

How was such an issue resolved:

For the first time, we simply reverted, and error resolved;

For the second time, we reverted, and the developer didn't fix her code, but just pushed the code together with some new features, and the build was successful;

For the third time, we cleaned package-lock.json without reverting the code, and it was fixed;

For the forth time, we tried to clean package-lock.json, but it still failed. Then we reverted the code, and split the push little by little, and this problem just disappeared.

What makes me worried, is whether this will happen again, and what we can do to resolve this issue for good. It seems this error just ghostly appear and disappear, and the only thing I can think of is package-lock.json. Anyone has any idea about how this happens and how to fix it?

Thank you for your help. Kind regards,

0 Answers0