-
Notifications
You must be signed in to change notification settings - Fork 177
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
code: 'ERR_REQUIRE_ESM' #1505
Comments
Until they fix it, I found that version |
Thanks for your kinda reply, actually I am using this package: https://www.npmjs.com/package/@privy-io/server-auth which uses |
I wonder if we should just downgrade the base64 lib. Thanks for the report! |
Thanks, Tom, I strongly recommend that downgrade it to |
Yeah, it's probably the right call (as long as there are no security issues or other incompatibilities). I wonder why upstream broke things this way. :| |
Hope to see a quick rollback version, :D. |
…1506) Fixes #1505 Big thanks to @ZONGMENG-kaito for the report. During the work on #1480 various dependencies were updated to match what is being produced by the upstream code generator. Unfortunately, the version spec change for `@stablelib/base64` up to 2.x means we inherit their ESM requirement. The local tests (i.e. `SVIX_SERVER_URL=... SVIX_TOKEN=... yarn test`) continue to pass with the downgrade, so it seems like pinning to 1.x will free consumers of _our lib_ of this new requirement for now. Hopefully in the future we'll find a way to track 2.x without disruption.
Hi folks, the downgrade for |
Thanks for your working, do we plan to release a new version shortly? |
@ZONGMENG-kaito I anticipate a release tomorrow (Nov 8th). |
Any updates here? |
Not yet, I will test it soon. Thanks for your work |
There was a release already, did it not fix it for you? |
Yes, it's fixed now, big thanks to all of you. |
Module not found: ESM packages (@stablelib/base64) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals error from svix webhook lib svix/svix-webhooks#1505
Module not found: ESM packages (@stablelib/base64) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals error from svix webhook lib svix/svix-webhooks#1505
Module not found: ESM packages (@stablelib/base64) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals error from svix webhook lib svix/svix-webhooks#1505
Bug Report
I use
svix
in my npm project, but when I use the latest version, I got an error and the error code iscode: 'ERR_REQUIRE_ESM'
Version
Latest version
Platform
Mac os
Description
I believe is because this dependency's upgrade: https://github.com/svix/svix-webhooks/blob/main/javascript/package.json#L32, upgrade to
2.0.0
, which make the@stablelib/base64
to be ESM only: https://github.com/StableLib/stablelib/blob/master/packages/base64/package.json#L6@svix-onelson I likely found the upgrade PR was made from you, would you mind downgrading or fixing it? Thanks a lot.
The text was updated successfully, but these errors were encountered: