-
Notifications
You must be signed in to change notification settings - Fork 28
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
Use of fix-esm
seems to break the tsx
#52
Comments
This is because multer is not published with CJS support. |
@titanism are there any workarounds for this you can suggest? EDIT: It's important to note that https://www.npmjs.com/package/multer and |
Simply removing |
@titanism Are you sure ? It seems to me that multer is published as CJS only |
Any workaround for this? |
I am using
tsx
for autoreload of dev server, but as soon as I install@koa/multer
, I get this error:Similar to the one reported here: privatenumber/tsx#230
It seems the culprit is this line here: let originalMulter = require('fix-esm').require('multer');
So my question is - why is the
fix-esm
module required here and can this be fixed from your side?Versions:
node
: 20.8.1@koa/multer
: 3.0.2The text was updated successfully, but these errors were encountered: