We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you use NodeJS and ESModules, the library imports do not work as expected, you can see an example in this issue: https://ethereum.stackexchange.com/questions/133776/error-in-deploying-a-safe-methods-is-empty
It means that for ESM you have to do this:
import SafeCoreSDK from '@gnosis.pm/safe-core-sdk' console.log(SafeCoreSDK) // { // default: SafeCoreSDK // } const SDK = SafeCoreSDK.default
Separate builds for esm and commonjs like other libraries do. An example - https://github.com/gnosis/evm-proxy-detection
Can't see any
The text was updated successfully, but these errors were encountered:
I've also just discovered that this completely breaks types with typescript
Sorry, something went wrong.
Example on how to do this based on safe-apps-sdk safe-global/safe-apps-sdk#512
safe-apps-sdk
Almost done in PR #1049 . We will be using #514 as the main ticket.
No branches or pull requests
Context / issue
If you use NodeJS and ESModules, the library imports do not work as expected, you can see an example in this issue:
https://ethereum.stackexchange.com/questions/133776/error-in-deploying-a-safe-methods-is-empty
It means that for ESM you have to do this:
Proposed solution
Separate builds for esm and commonjs like other libraries do. An example - https://github.com/gnosis/evm-proxy-detection
Alternatives
Can't see any
Additional context
The text was updated successfully, but these errors were encountered: