Hi there.
Have you read our build debugging guide? [Support Guide] Debugging Netlify site builds
It describes not only almost certainly what is wrong (my quick guess is a version mismatch) but also how to debug, and once you have debugged, the questions we need the answers to (including what you tried and found) to continue advising you in your debugging.