ERROR in Cannot read property '0' of undefined

I cannot understand why this error, there is no clue to follow:

> ng run app:ionic-cordova-build:production --platform=ios
Option "lazy" is deprecated: Use 'inject' option with 'false' value instead.

ERROR in Cannot read property '0' of undefined
[ERROR] An error occurred while running subprocess ng.
        
        ng run app:ionic-cordova-build:production --platform=ios exited with exit code
        1.
        

Anyone knows where to start looking in?

Thank you

p.s: Cannot go previous git