Borewit/music-metadata

Can't parseFile() in Bun.sh

Closed this issue · 0 comments

Is there an existing issue for this?

  • I have searched the existing issues

music-metadata version

7.14.0

JavaScript module eco system

ECMAScript modules (ESM), music-medata ≥ version 8

Current Behavior

export const analyze = (app: Elysia) => app.post('/analyze', async ({body}) => 
{
  await Bun.write("./tempFiles/" + body.file.name, body.file);
  const meta = await mm.parseFile("./tempFiles/" + body.file.name, {duration: true});
}

this.fileHandle.close is not a function. (In 'this.fileHandle.close()', 'this.fileHandle.close' is undefined)

Expected Behavior

Parse metadata of a file

Attached audio sample?

  • I have provided sufficient information to reproduce the issue