AppKit worked on our Nextjs project (we don't use App Router) just fine until yesterday. Nextjs now throws an import error even on fresh project installs. Reproduce via attached repo: https://github.com/AnesBkdm/appkit-not-working
SyntaxError: Named export 'pino' not found. The requested module '@walletconnect/logger' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@walletconnect/logger';
const { pino } = pkg;
The error suggests editing node_module files, which obviously is not ideal. Has anyone come across this issue?
I would like to add that this error is common on wagmi, ethers6 and ethers5 modes of Reown Appkit. We had to fallback to the old Web3Modal packages suggested in the dashboard to keep our web3 Login feature.
Link to minimal reproducible example
https://github.com/AnesBkdm/appkit-not-working
Summary
AppKit worked on our Nextjs project (we don't use App Router) just fine until yesterday. Nextjs now throws an import error even on fresh project installs. Reproduce via attached repo: https://github.com/AnesBkdm/appkit-not-working
The error suggests editing node_module files, which obviously is not ideal. Has anyone come across this issue?
List of related npm package versions