catdad-experiments / catdad-experiments/heic-convert

Spread syntax requires ...iterable[Symbol.iterator] to be a function

Open
#34 10 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
320
Forks
36
PR merge metrics
No merged PRs in 30d

Description

hello
im trying to add heic file in my next js 14 app with formData on my windows machine using this code

```
const data = await req.formData();
const kk = data.get("kk") as File;
const kk_buffer = kk && kk instanceof Blob ? await kk.arrayBuffer() : undefined;
if (kk.name.split(".")[1] === "heic" || kk.name.split(".")[1] === "heif") {
const kk_converted = await convert({
buffer: kk_buffer,
format: "JPEG",
});
console.log("🚀 ~ kk_converted:", kk_converted)
}
```

and i got error like this: Spread syntax requires ...iterable[Symbol.iterator] to be a function

is this because im upload from my windows machine?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.