So bar has become an object with the properties A and B. Any perform is usually a constructor; it just won't generally make sense. I ran into this concern working with docker Construct. What's your docker Model? Upgrading to the most up-to-date Model assisted me solve the issue! Investigate the https://emaarurbanascent.blogspot.com/