If I want build I am getting this error

E:\dashtask>ionic build android --prod --release
Running command: E:\node.exe E:\dashtask\hooks\after_prepare\010_add_platform_class.js E:\dashtask

add to body class: platform-android


JAVA_HOME=C:\Program Files\Java\jdk

Error: Cannot read property ‘length’ of undefined

Did you read through the many topics that pop up when you search for the error message “Error: Cannot read property ‘length’ of undefined” here in the forum?