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

Can't resolve 'pino-pretty' when installing @walletconnect/ethereum-provider with pnpm #4466

Open
joaquim-verges opened this issue Apr 20, 2024 · 5 comments
Labels
type: bug Something isn't working

Comments

@joaquim-verges
Copy link

Describe the bug
installing @walletconnect/ethereum-provider with pnpm results in the following error at runtime:

Module not found: Can't resolve 'pino-pretty' in '/Users/joaquim/Work/templates/account-abstraction/node_modules/.pnpm/pino@7.11.0/node_modules/pino/lib'

Import trace for requested module:
./node_modules/.pnpm/pino@7.11.0/node_modules/pino/lib/tools.js
./node_modules/.pnpm/pino@7.11.0/node_modules/pino/pino.js
./node_modules/.pnpm/@walletconnect+logger@2.1.2/node_modules/@walletconnect/logger/dist/index.es.js
./node_modules/.pnpm/@walletconnect+universal-provider@2.11.3/node_modules/@walletconnect/universal-provider/dist/index.es.js
./node_modules/.pnpm/@walletconnect+ethereum-provider@2.11.3_@types+react@18.0.0_react@18.0.0/node_modules/@walletconnect/ethereum-provider/dist/index.es.js

It looks like the pino-pretty dependency is not declared properly, resulting in a missing module.

SDK Version (if relevant)

  • @walletconnect/ethereum-provider
  • 2.12.2

To Reproduce
Steps to reproduce the behavior:

  1. pnpm install @walletconnect/ethereum-provider
  2. run the application

Expected behavior
no runtime errors

@joaquim-verges joaquim-verges added the type: bug Something isn't working label Apr 20, 2024
@glitch-txs
Copy link
Member

Where are you installing it? Is it Next.js? Same issue in version 2.11?

@joaquim-verges
Copy link
Author

yes this was on a next.js project - have not tried 2.11 but seems related to #1908

@glitch-txs
Copy link
Member

Could you try this: https://docs.walletconnect.com/web3modal/nextjs/about#extra-configuration

@diegosano
Copy link

Could you try this: https://docs.walletconnect.com/web3modal/nextjs/about#extra-configuration

I had the same problem and this worked 🚀

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

No branches or pull requests

3 participants