-
-
Notifications
You must be signed in to change notification settings - Fork 935
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
I'm using CommonJS! What should I do? #1789
Comments
Unfortunately, The right direction to go is clearly to move to ESM. |
Node v12.22.0 has been released almost a year ago (2021-03-30) and it has brought stable support for ESM. |
Ah, I didn't know it was possible to use Regarding I tried to update This might be time-consuming, so before trying that route, I just wanted to know if there is support, and if that's something we should consider. |
Just closing this as it's pinned so it doesn't need to be open. |
Please read this.
If you can't move to ESM yet, please stay on the Got v11 branch.
Workarounds for Got v12
await import('got')
.Disclaimer: the first request needs to be a Promise.
got-cjs
: https://github.com/apify/got-cjsThe text was updated successfully, but these errors were encountered: