There seems to be some issue with npm packages being transpiled with Next.js. This looks like an issue on Next.js side as sol-wallet-adapter works fine. Just curious if someone figure out a good config file to get this working!