I’ve tried to initiate TextGeometry but I’m prompted with the error `_three.TextGeometry is not a function I’m using parcel as my package manger and here are my dependencies
"dependencies": {
"dat.gui": "^0.7.9",
"parcel": "^2.7.0",
"three": "^0.145.0"
},
and here is a snippet of my code
this.textGeometry = new THREE.TextGeometry("Hello world!", {
font: typefaceFont,
size: 0.5,
height: 0.2,
curveSegments: 12,
bevelEnabled: true,
bevelThickness: 0.03,
bevelSize: 0.02,
bevelOffset: 0,
bevelSegments: 5,
});
could someone tell me what’s wrong with this?