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
Build giving the error in cloudflare-pages
preset
#970
Labels
Comments
What does the cloudfare preset do ? |
@prvashisht Cloudflare Pages? Or Workers? I think it might be that formidable isn't passed "Node Request", while other environments are having the already standard web api Request. They are slightly different. In some frameworks there are Not sure for Nuxt and presets, not familiar with the Vue ecosystem at all. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Support plan
Context
What are you trying to achieve or the steps to reproduce?
I'm using formidable in my Nuxt 3 project, which is deployed on Cloudflare Pages. Within the project, I have an API in the server directory, and in the API I'm parsing a submitted form. When I create a new form variable with
const form = formidable({ multiples: true });
, the API throws an error and the initialisation fails with the following error. (It's only breaking in the Cloudflare preset, it works okay locally)What was the result you got?
Now, since I can only see this while running a build preview locally with the Cloudflare preset, the file names are hashed.
What result did you expect?
For the form to be parsed and work as it does locally.
The text was updated successfully, but these errors were encountered: