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

Replace form-data with nodejs FormData? #1516

Closed
Carseason opened this issue May 5, 2023 · 1 comment
Closed

Replace form-data with nodejs FormData? #1516

Carseason opened this issue May 5, 2023 · 1 comment

Comments

@Carseason
Copy link

The latest node has integrated DataForm form-data/form-data#544 ,
There are many problems with npm data-form in ssr

@blumendorf
Copy link

We are on node 18 and switched to Axios as client for openapi.

This now leads to the following eslint error:
Error: Cannot find module '.../node_modules/form-data/lib/form_data'. Please verify that the package.json has a valid "main" entry
Occurred while linting .../src/App.tsx:2
Rule: "import/no-cycle"
...

We have not been able to further pin this down to anything in our code as the only change was switching from fetch to Axios as client.

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

2 participants