Skip to content
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

[DOCS] Error on eth-optimism/sdk import #387

Open
Tschakki opened this issue Mar 13, 2024 · 2 comments
Open

[DOCS] Error on eth-optimism/sdk import #387

Tschakki opened this issue Mar 13, 2024 · 2 comments

Comments

@Tschakki
Copy link

Brief Description of the Docs Request

Hey, I was following the guide Bridging ERC-20 Tokens to OP Mainnet With the Optimism SDK and received the following error when requiring the OP SDK:

mona@Monas-MacBook-Pro op-sample-project % node
Welcome to Node.js v18.17.0.
Type ".help" for more information.
> const optimism = require("@eth-optimism/sdk");
Uncaught TypeError: Cannot read properties of undefined (reading 'AddressZero')
    at Object.<anonymous> (/Users/mona/git/tests/op-sample-project/node_modules/.pnpm/@[email protected][email protected]/node_modules/@eth-optimism/sdk/dist/utils/chain-constants.js:34:40)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:110:18)

I was not able to proceed with the guide because of this error.

@cpengilly
Copy link
Contributor

@Tschakki apologize for the delay, I have notifed our devsupport team of this issue and we should have an answer or workaround in the next few days!

@sbvegan
Copy link
Collaborator

sbvegan commented Apr 15, 2024

Hey @Tschakki, I believe you, @ZakAyesh, and I have chatted on slack is this still an open issue?

@cpengilly cpengilly transferred this issue from ethereum-optimism/docs May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants