-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
Since V3 I get "formidable is not a function" - using require not import #955
Comments
Unbelievable |
https://npmfs.com/package/formidable/3.5.1/dist/index.cjs#L1682 |
And yet when I revert to V2 it works and simply upgrade to V3 again it fails with same error which makes no sense I agree but its happening
It fails at line
|
Using the following command to import can solve the problem, and I don't know why |
Have the same problem. |
Same problem here |
That solved it for me thanks everyone! |
Is everyone having this issue using Typescript ? |
No I am not This works though:
|
Im not using Typescript and have that issue but solved from the suggestion above |
That's normal. It's a SemVer Major release, and it's documented. We tried to have backwards compat but yeah. We have |
I meet the same problem, does it affect any subsequent code? |
Support plan
Context
What are you trying to achieve or the steps to reproduce?
I simply upgraded to V3 and now get an error of "formidable is not a function".
Im using
const formidable = require("formidable");
not import as I am not using a module and to change it is a huge hassle as it affects loads of other things.What was the result you got?
"formidable is not a function"
What result did you expect?
for it to work like it did in V2
The text was updated successfully, but these errors were encountered: