next-multiparty icon indicating copy to clipboard operation
next-multiparty copied to clipboard

Conflicting peer dependency

Open Ali-Hussein-dev opened this issue 2 years ago • 11 comments

I am using Next version 13.2.4 and have the following error when deploying to Vercel. Could not resolve dependency: While resolving: [email protected] Found: [email protected]

Ali-Hussein-dev avatar Mar 25 '23 17:03 Ali-Hussein-dev

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

Ali-Hussein-dev avatar Mar 26 '23 13:03 Ali-Hussein-dev

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

cstrnt avatar Mar 27 '23 05:03 cstrnt

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

cstrnt avatar Mar 27 '23 05:03 cstrnt

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

Ali-Hussein-dev avatar Mar 27 '23 13:03 Ali-Hussein-dev

did you export the config?

cstrnt avatar Mar 27 '23 13:03 cstrnt

yes

Ali-Hussein-dev avatar Mar 27 '23 13:03 Ali-Hussein-dev

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 }

Ali-Hussein-dev avatar Mar 27 '23 13:03 Ali-Hussein-dev

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?

cstrnt avatar Mar 27 '23 15:03 cstrnt

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.

Ali-Hussein-dev avatar Mar 27 '23 20:03 Ali-Hussein-dev

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

cstrnt avatar Mar 28 '23 07:03 cstrnt

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

VukDukic avatar Dec 31 '23 00:12 VukDukic