When I try to retrieve the material elements of my visualization using
this.scene.getObjectByName("MeshName").material
, everything seems to be working fine. I can see the elements and they are printed successfully. However, I need to access these elements to change the opacity. The issue arises when I encounter the error message "Property 'material' does not exist on type 'Object3D'", preventing me from running ng build without using // @ts-ignore
to bypass it. Can anyone explain why this error is occurring?