https://i.sstatic.net/cfznC.png
I am encountering an issue while trying to access elements within this array. Despite there being a length of 5, the code returns "undefined" and has a length of 0. The image above shows the output of this code.
console.log(scene.children[1].children);
The result of the following code is 0
console.log(scene.children[1].children.length);
The result of the next code snippet is undefined
console.log(scene.children[1].children[0]);
If it helps provide context, here are previous paths:
console.log(scene);
https://i.sstatic.net/h3ITQ.png
console.log(scene.children[1]);
https://i.sstatic.net/gOgvS.png
As per comments, here is the full code:
import "./styles.css";
... (the rest of the original code goes here)