TypeError: (0 , wagmi__WEBPACK_IMPORTED_MODULE_1__.createClient) is not a function at eval (webpack-internal:///./pages/_app.js:27:67) { page: â/â
import { createClient, configureChains, WagmiConfig } from âwagmiâ;
import { publicProvider } from âwagmi/providers/publicâ;
import { SessionProvider } from ânext-auth/reactâ;
import { mainnet } from âwagmi/chainsâ;
const { provider, webSocketProvider } = configureChains(
[mainnet],
[publicProvider()]
);
const client = createClient({
provider,
webSocketProvider,
autoConnect: true,
});
function MyApp({ Component, pageProps }) {
return (
<Component {âŚpageProps} />
);
}
export default MyApp;