Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicting peer dependency #5

Open
Ali-Hussein-dev opened this issue Mar 25, 2023 · 11 comments
Open

Conflicting peer dependency #5

Ali-Hussein-dev opened this issue Mar 25, 2023 · 11 comments

Comments

@Ali-Hussein-dev
Copy link

Ali-Hussein-dev commented Mar 25, 2023

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
Copy link
Author

Ali-Hussein-dev commented Mar 26, 2023

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
Copy link
Owner

cstrnt commented Mar 27, 2023

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

@cstrnt
Copy link
Owner

cstrnt commented Mar 27, 2023

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

@Ali-Hussein-dev
Copy link
Author

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

@cstrnt
Copy link
Owner

cstrnt commented Mar 27, 2023

did you export the config?

@Ali-Hussein-dev
Copy link
Author

yes

@Ali-Hussein-dev
Copy link
Author

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
Copy link
Owner

cstrnt commented Mar 27, 2023

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
Copy link
Author

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
Copy link
Owner

cstrnt commented Mar 28, 2023

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

@VukDukic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants