-
Describe the bug I added wagmi config to my NextJS project following the example given here https://github.com/family/connectkit/blob/main/examples/nextjs/pages/_app.tsx and got this error ./node_modules/node-gyp-build/node-gyp-build.js:1:0 Import trace for requested module: The project works when I remove the config from app.tsx (seen in screenshot) To reproduce Here is a Replit reproducing the problem Expected behavior Adding wagmi config should not throw an error like this. Something about the example project is off. Screenshots |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
We've seen this issue before recently but it was due to the @Jam516 Give that a shot and let us know if that helped, but for what it's worth the |
Beta Was this translation helpful? Give feedback.
-
This really should be in the docs / readme... |
Beta Was this translation helpful? Give feedback.
Found an answer on the wagmi repo (thanks @jxom!) Looks like this only occurs if you don't have a the
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
env variable set up as this is an issue with WalletConnect v1 (which connectkit will fall back to if this ID is missing). So setting up this variable (or putting the string directly into the config) might fix this too.