Hello, I’m trying to instantiate FontLoader, but the console retrieves me an error :
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'yMax')
at createPaths (chunk-TVP32DZT.js?v=b2f8a5a7:46:41)
at Font.generateShapes (chunk-TVP32DZT.js?v=b2f8a5a7:36:19)
at new TextGeometry (three_addons_geometries_TextGeometry__js.js?v=b2f8a5a7:13:27)
at main.js:115:20
at Object.onLoad (chunk-TVP32DZT.js?v=b2f8a5a7:21:9)
at chunk-YWEOQFMY.js?v=b2f8a5a7:23738:20
For your information, I’m using vite 4.0.0
Here’s my code :
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader.js';
const loader = new FontLoader();
console.log(loader);
The code snippet is not sufficient since the error happens when the instance of TextGeometry is created. So you probably have to share a larger piece of code as well as the font so it becomes more clear what happens.