Recently, I've been experimenting with modules, three.js, and gsap. I'm attempting to animate a 3D object along a path. I found a solution using "common js" that works well here: https://codepen.io/uiunicorn/pen/zYZoYpV
However, when I try to incorporate it into my project using modules, I encountered two errors:
Uncaught TypeError: Cannot read property ‘position’ of undefined
line: 163
Uncaught TypeError: setX is not a function
line: 168
Am I overlooking something? Any guidance on how to resolve these errors would be greatly appreciated. Thank you for taking the time to read this.