-
Notifications
You must be signed in to change notification settings - Fork 282
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
NodeJS 13 ECMAScript Modules | Babel Error #835
Comments
Hey @kaankabalak @kannappanr any news about this issue ? |
We are busy with other priorities right now @roonie007 feel free to send a PR yourself if you do have time. |
this is already fixed, will be released in >7.1.0 |
I am running
When trying to run it with bun I get:
|
How are you importing @BjoernRave ? |
minio doesn't have default exports, you should use wildcard import import * as minio from 'minio' |
@trim21 okay, it works like that. Yes I was importing it like: import Minio from 'minio' Would be nice if it would work like that though, as that's how most imports work |
you can configure your babel to make it intercepting like this, or tsconfig |
Hey,
We are using the minio module in our project using NodeJS 13 which now supports natively the Import/Export.
But for our tests and since Jest still does not work properly with NodeJS 13 (jestjs/jest#9430) we are using Babel for your tests .
Everything works perfectly with all other modules like mongoose, fastify, moment, multer etc... .
When we added Minio to our project and added our tests, when we run the project in NodeJS 13 everything works perfectly and here is the code :
and when we run
yarn test
we get this error from BabelBut when we change the
import Minio from 'minio';
toimport * as Minio from 'minio';
the tests now works perfectly but when we run the server using NodeJS 13 we get this errorCan you help please ?
I have been stuck with this from yesterday.
More than 150 tests works with the other modules without any problems, but it the problem occurs only with minio.
Thanks
The text was updated successfully, but these errors were encountered: