Failing to build Strapi (4.0.7)

Welcome to the Strapi Community @harel
Just a small tip try upgrade to latest version, see if that fixes the problem.
Also make sure you rebuild your app.