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

Fix "modules not found" warnings #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

manumonti
Copy link

When running pnpm dev, several warnings were shown regarding the modules "pino-pretty" and "encoding" not being found.

These are shown when the Next.js configuration of WalletConnect/Reown is incomplete.

More info here
https://docs.reown.com/appkit/next/core/installation#extra-configuration

Warnings:

[manumonti@Manuels-MacBook-Pro:~/Projects/nucypher/taco-orbisdb-demo on main]
% pnpm dev                                                                                                                                                       ✹

> [email protected] dev /Users/manumonti/Projects/nucypher/taco-orbisdb-demo
> next dev

  ▲ Next.js 14.2.4
  - Local:        http://localhost:3000
  - Environments: .env.local

 ✓ Starting...
 ✓ Ready in 4s
 ○ Compiling / ...
 ⚠ ./node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_@bab_cr3ljl2ggshgpyvxbqapr3sndu/node_modules/@metamask/sdk/dist/node/es/metamask-sdk.js
Module not found: Can't resolve 'encoding' in '/Users/manumonti/Projects/nucypher/taco-orbisdb-demo/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_@bab_cr3ljl2ggshgpyvxbqapr3sndu/node_modules/@metamask/sdk/dist/node/es'

Import trace for requested module:
./node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_@bab_cr3ljl2ggshgpyvxbqapr3sndu/node_modules/@metamask/sdk/dist/node/es/metamask-sdk.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@_wtcnakt4puqjiq3nuomedchiia/node_modules/@wagmi/connectors/dist/esm/metaMask.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@_wtcnakt4puqjiq3nuomedchiia/node_modules/@wagmi/connectors/dist/esm/exports/index.js
./node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]__@types_lafxc5hi6tqm7axvkanqzabr64/node_modules/wagmi/dist/esm/exports/connectors.js
./node_modules/.pnpm/@[email protected]_@[email protected][email protected]__@[email protected]__sishxooilebddabaqgw6fvgbgm/node_modules/@rainbow-me/rainbowkit/dist/index.js
./components/layout/navbar.tsx

./node_modules/.pnpm/[email protected]/node_modules/pino/lib/tools.js
Module not found: Can't resolve 'pino-pretty' in '/Users/manumonti/Projects/nucypher/taco-orbisdb-demo/node_modules/.pnpm/[email protected]/node_modules/pino/lib'

Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/pino/lib/tools.js
./node_modules/.pnpm/[email protected]/node_modules/pino/pino.js
./node_modules/.pnpm/@[email protected]/node_modules/@walletconnect/logger/dist/index.es.js
./node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@walletconnect/core/dist/index.es.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@ethersproject+abstract-s_3pg6xgtv3iyejbsn22vy653hxi/node_modules/@thirdweb-dev/wallets/dist/thirdweb-dev-wallets.esm.js
./node_modules/.pnpm/@[email protected]_tre3kfyovzxjy7h7lrxe2osnua/node_modules/@thirdweb-dev/react/dist/thirdweb-dev-react.esm.js
./app/layout.tsx
 GET / 200 in 18268ms
 ⚠ ./node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_@bab_cr3ljl2ggshgpyvxbqapr3sndu/node_modules/@metamask/sdk/dist/node/es/metamask-sdk.js
Module not found: Can't resolve 'encoding' in '/Users/manumonti/Projects/nucypher/taco-orbisdb-demo/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_@bab_cr3ljl2ggshgpyvxbqapr3sndu/node_modules/@metamask/sdk/dist/node/es'

Import trace for requested module:
./node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_@bab_cr3ljl2ggshgpyvxbqapr3sndu/node_modules/@metamask/sdk/dist/node/es/metamask-sdk.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@_wtcnakt4puqjiq3nuomedchiia/node_modules/@wagmi/connectors/dist/esm/metaMask.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@_wtcnakt4puqjiq3nuomedchiia/node_modules/@wagmi/connectors/dist/esm/exports/index.js
./node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]__@types_lafxc5hi6tqm7axvkanqzabr64/node_modules/wagmi/dist/esm/exports/connectors.js
./node_modules/.pnpm/@[email protected]_@[email protected][email protected]__@[email protected]__sishxooilebddabaqgw6fvgbgm/node_modules/@rainbow-me/rainbowkit/dist/index.js
./components/layout/navbar.tsx

./node_modules/.pnpm/[email protected]/node_modules/pino/lib/tools.js
Module not found: Can't resolve 'pino-pretty' in '/Users/manumonti/Projects/nucypher/taco-orbisdb-demo/node_modules/.pnpm/[email protected]/node_modules/pino/lib'

Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/pino/lib/tools.js
./node_modules/.pnpm/[email protected]/node_modules/pino/pino.js
./node_modules/.pnpm/@[email protected]/node_modules/@walletconnect/logger/dist/index.es.js
./node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@walletconnect/core/dist/index.es.js
./node_modules/.pnpm/@[email protected]_@[email protected]_@ethersproject+abstract-s_3pg6xgtv3iyejbsn22vy653hxi/node_modules/@thirdweb-dev/wallets/dist/thirdweb-dev-wallets.esm.js
./node_modules/.pnpm/@[email protected]_tre3kfyovzxjy7h7lrxe2osnua/node_modules/@thirdweb-dev/react/dist/thirdweb-dev-react.esm.js
./app/layout.tsx

When running pnpm, several warnings were shown regarding the modules
"pino-pretty" and "encoding" not being found.

These are shown when the Next.js configuration of WalletConnect/Reown
is incomplete.

More info here
https://docs.reown.com/appkit/next/core/installation#extra-configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant