safe-global / safe-apps-sdk

Client-side SDKs to create third-party Safe Apps
https://safe.global
MIT License
250 stars 117 forks source link

Cannot import RPC_CALLS as a value #539

Closed katspaugh closed 9 months ago

katspaugh commented 9 months ago

We're upgrading to v9 here: https://github.com/safe-global/safe-wallet-web/pull/3049

Unfortunately, the RPC_CALLS object cannot be imported as a JS value, as it's only exported as a type in constants.d.ts

Build error:

Package path ./dist/types/eth/constants is not exported from package node_modules/@safe-global/safe-apps-sdk
(see exports field in node_modules/@safe-global/safe-apps-sdk/package.json)

Possible solution

Re-export it from index.ts?