If you see a console warning like the following related to pino-pretty, lokijs, or encoding:
./node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/Users/xxx/xxx/node_modules/node-fetch/lib'You can fix it by adding the following to your next.config.js:
js
webpack: (config) => {
config.externals.push("pino-pretty", "lokijs", "encoding");
return config;
};Learn more about the issue here: https://github.com/WalletConnect/walletconnect-monorepo/issues/1908#issuecomment-1487801131