Found error in PAGE —> on → CHILDREN-PROPERTY…
let myChildren = $w("#page1").children; console.log(myChildren);
Result…
This should normly not happen!
Where is the whole OBJECT ???
That works, but not enough!
let firstChild = myChildren[0]; console.log(firstChild);
Please fix that bug! Thanks!
A looping through the results, also ends in an ERROR…
myChildren.forEach(childElement => {
console.log("Main-Child: ", childElement);
});
Turned out it was a → DATASET ← placed on my page, what causes the issue !!!

When deleting it from the page —> everything works fine again !!!
Predefined stuff !!!
I should know it better!
No errors, anymore…
The → 3 <— is the length of childrens-object in this case.
The counting of placed elements on the page works well.
console.log(myChildren.length)
4-Elements were placed on the page…
- Box
- Text
- Upload-Button
- and a —> DATASET
Whyever a DATASET is also included in the countings, i don’t know!
But if Wix wants to include it inside the counting —> at least the code should not break because of it!!! 


Conclusion —> NEVER USE A DATASET EVER AGAIN → DO ALL BY PURE CODE!