starsGeometry[0].setAttribute is not a function
trying to replicate the three.js globe present on this site: https://threejs.org/examples/misc_controls_fly.html and when I launch the code I get the mistake: starsGeometry[0].setAttribute is not a function ,I've bee stuck befre on a problem like this in the previous days and i would love to get the problem my init it's
https://stackoverflow.com/questions/59158103/starsgeometry0-setattribute-is-not-a-function