You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @cheqd/sdk module exports both ESM and CJS builds in cjs / esm folders. however the CJS build imports the @cheqd/ts-proto module using require.
When importing ESM from a CJS module, it needs to be imported using await import, thus the CJS output from the cheqd sdk is incorrect.
Since the cheqd/ts-proto module already only supports ESM, I think it may make sense to also only support ESM for the cheqd SDK, or fix the imports in the CJS build of the cheqd sdk
How can we reproduce this bug?
...
Environment
Not applicable
Bug prevalence
No response
Which browser/client application did you encounter the bug in? (if applicable)
Not applicable
Relevant log output
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What went wrong?
The
@cheqd/sdk
module exports both ESM and CJS builds incjs
/esm
folders. however the CJS build imports the@cheqd/ts-proto
module usingrequire
.When importing ESM from a CJS module, it needs to be imported using
await import
, thus the CJS output from the cheqd sdk is incorrect.Since the cheqd/ts-proto module already only supports ESM, I think it may make sense to also only support ESM for the cheqd SDK, or fix the imports in the CJS build of the cheqd sdk
How can we reproduce this bug?
...
Environment
Not applicable
Bug prevalence
No response
Which browser/client application did you encounter the bug in? (if applicable)
Not applicable
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: