Error when clicking on "Add a component" in Dynamic zone (TypeError: Cannot read properties of undefined (reading 'length'))

Same issue npm run build does nothing

I’m using “@strapi/strapi”: “4.15.0”

downgrading to 4.13.0 worked for me