I get this error
Error at new RuntimeError: glTF model references separate files but no resourceDirectory is supplied
Reviewing the library code, I understood that it was mandatory to send a second options parameter to indicate where the folder with the GLTF model files was
When I use the code implementation as docs said
I get this error
Error at new RuntimeError: glTF model references separate files but no resourceDirectory is supplied
Reviewing the library code, I understood that it was mandatory to send a second options parameter to indicate where the folder with the GLTF model files was
Adding options param fixed my issue
const { glb } = await gltfToGlb(gltf, options)
maybe it can help other people who have same problem