# Cannot set property receiveShadows of \[object Object\] which has only a getter with ES6

**URL:** <https://forum.babylonjs.com/t/cannot-set-property-receiveshadows-of-object-object-which-has-only-a-getter-with-es6/7028>\
**Category:** Bugs\
**Created:** [November 16, 2019, 12:03pm UTC](https://forum.babylonjs.com/t/cannot-set-property-receiveshadows-of-object-object-which-has-only-a-getter-with-es6/7028 "2019-11-16T12:03:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Gijs](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gijs/32/44_2.png) [@Gijs](https://forum.babylonjs.com/u/Gijs)\
**Post date:** [November 17, 2019, 7:24pm UTC](https://forum.babylonjs.com/t/cannot-set-property-receiveshadows-of-object-object-which-has-only-a-getter-with-es6/7028/4 "2019-11-17T19:24:30Z")

</div>

I did mean `sourceMesh`, which is a property instanced meshes do have, and they are the only kind of mesh that only have the getter. The other one is `AbstractMesh`, which has both a getter and a setter for `receiveShadows`.

---

_[View the full topic](https://forum.babylonjs.com/t/cannot-set-property-receiveshadows-of-object-object-which-has-only-a-getter-with-es6/7028)._
