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

[bug] Cannot find module @walletconnect/ethereum-provider when in node context #207

Closed
1 task done
sammdec opened this issue Feb 22, 2022 · 7 comments
Closed
1 task done

Comments

@sammdec
Copy link
Contributor

sammdec commented Feb 22, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Package Version

0.2.15

Current Behavior

When building a page with next.js using getStaticProps, it attempts to use the commonjs module version of wagmi and breaks as it looks like wagmi-core doesnt export or include the required module.
image

Expected Behavior

No response

Steps To Reproduce

Create a next.js app
Use get static props to force serverside build of the page.
Attempt to load the page

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

@melissafzhang
Copy link

We are also seeing this error in nextjs!

@tmm
Copy link
Member

tmm commented Feb 24, 2022

What version of Next.js are you using?

I'm not able to reproduce with this CodeSandbox. Feel free to tweak it.

@sammdec
Copy link
Contributor Author

sammdec commented Feb 24, 2022

Does code sandbox support getStaticProps?

@tmm
Copy link
Member

tmm commented Feb 25, 2022

You can export as zip and build/run locally.

image

What version of Next.js are you using? Definitely down to look into more if there's a good way to reproduce.

@sammdec
Copy link
Contributor Author

sammdec commented Feb 28, 2022

Using v12.1 Nextjs

@sammdec
Copy link
Contributor Author

sammdec commented Mar 24, 2022

Closing this as it seems to have resolved itself with the newer versions. I think it may have been related to a underlying library

@sammdec sammdec closed this as completed Mar 24, 2022
Copy link
Contributor

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest wagmi version. If you have any other comments you can create a new discussion.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants