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

unhandledRejection: ReferenceError: document is not defined #646

Closed
ashishkabuni opened this issue May 3, 2024 · 2 comments
Closed

unhandledRejection: ReferenceError: document is not defined #646

ashishkabuni opened this issue May 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ashishkabuni
Copy link

Thanks for filling out this bug report. Please provide as much detail as possible.

If your issue is with our RPC APIs and not the SDK please report your issue on (discord)[https://alchemy.com/discord].

[REQUIRED] Environment

  • Browser version:
  • AA SDK version: 3.11.1
  • Package: alchemy/aa-alchemy

[REQUIRED] Describe the problem

Getting error when doing build for my nextjs project.

⨯ unhandledRejection: ReferenceError: document is not defined
at createSigner (webpack-internal:///(ssr)/./node_modules/@alchemy/aa-alchemy/dist/esm/config/store/client.js:43:27)

How to reproduce:

Relevant code or sample repro:

@ashishkabuni ashishkabuni added the bug Something isn't working label May 3, 2024
@ashishkabuni
Copy link
Author

Also getting this error:

⨯ node_modules/@alchemy/aa-alchemy/dist/esm/config/actions/getAccount.js (6:14) @ getAccount
⨯ ClientOnlyPropertyError: account is only available on the client

@moldy530
Copy link
Collaborator

this looks related to #648, it should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants