Currently utilizing three.js for animations, I am looking to incorporate a texture onto a specific point. Interestingly, while running a local host using vite, everything functions correctly up until the moment I include the following code snippet; at that precise instant, my HTML page turns completely white. Notably, I have yet to assign the variable 'letter' to any element or function.
const loader = new THREE.TextureLoader().load();
const letter = loader.load('img/q.png');