While trying to add text to a three.js scene, I encountered the error message "Uncaught TypeError: Cannot read property 'yMax' of undefined".
let loader = new THREE.FontLoader();
let font = loader.parse( jsonFont );
let geometry = new THREE.TextBufferGeometry( 'MY TEXT', {
font: font,
size: 80,
height: 5,
curveSegments: 12,
bevelEnabled: true,
bevelThickness: 10,
bevelSize: 8,
bevelSegments: 5
} );
Upon checking the console in Chrome, the complete error message displayed is:
Uncaught TypeError: Cannot read property 'yMax' of undefined <-- createPaths <-- generateShapes <-- TextBufferGeometry