cstrnt / next-multiparty

Easy & Simple File Uploads for Next.js
MIT License
19 stars 3 forks source link

Conflicting peer dependency #5

Open Ali-Hussein-dev opened 1 year ago

Ali-Hussein-dev commented 1 year ago

I am using Next version 13.2.4 and have the following error when deploying to Vercel. Could not resolve dependency: While resolving: next-multiparty@0.6.3 Found: next@13.2.4

Ali-Hussein-dev commented 1 year ago

I have Vercel installed it with the command npm i --force but I run into a runtime error Could not parse multipart form Node version: 18.15.0

cstrnt commented 1 year ago

Thanks for the report, I'll look into it :)

cstrnt commented 1 year ago

@Ali-Hussein-dev I reproduced the error and pushed a new version with a correct semver range :)

Ali-Hussein-dev commented 1 year ago

@cstrnt it solves the build time issue, but the runtime error Could not parse multipart form doesn't disappear.

cstrnt commented 1 year ago

did you export the config?

Ali-Hussein-dev commented 1 year ago

yes

Ali-Hussein-dev commented 1 year ago

here is the full error message from Vercel. @cstrnt TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:14062:11) at async /var/task/.next/server/pages/api/whisper.js:116:22 { cause: TypeError: object2 is not iterable at action (node:internal/deps/undici/undici:6123:39) at action.next (<anonymous>) at Object.pull (node:internal/deps/undici/undici:6169:52) at ensureIsPromise (node:internal/webstreams/util:190:19) at readableStreamDefaultControllerCallPullIfNeeded (node:internal/webstreams/readablestream:2229:5) at node:internal/webstreams/readablestream:2319:7 }

cstrnt commented 1 year ago

I'm pretty certain that this is not related to this library, but I would love to help you with it. Any chance you could create a reproduction on stackblitz / codesandbox?

Ali-Hussein-dev commented 1 year ago

Here is a link to the Stackblitz repo Repo You need to have an Openai key. I deployed it to vercel here is the link https://nextjs-whisper.vercel.app/ and have the same issue.

cstrnt commented 1 year ago

It seems like the contentType is not set properly, I will look into a fix!

VukDukic commented 7 months ago

Has this been fixed? I am facing a similar issue. Thank you.