geometry.setAttribute is not a function GLTFexport

Hi how can I solve this one? Im trying to export my model but I can’t because of this error

It seems your version of GLTFExporter is out of sync with the core of three.js. Please ensure to use all library files from the same release.