Next.js Discord

Discord Forum

Switching to next@13.4.5 causes <Component {...pageProps} /> to error (pages directory)

Unanswered
nkmctsh posted this in #help-forum
Open in Discord
Hello, after switching from next@13.2.4 to next@13.4.5 I am getting a strange "error" (see picture). The _app.tsx looks like this:

function MyApp({ Component, pageProps }: AppProps) {
  return (
    <SWRConfig value={{ refreshInterval: 5000 }}>
      <ApolloProvider client={chainlinkClient}>
        <Provider store={store}>
          <WagmiConfig client={web3Client}>
            <Layout>
              <Component {...pageProps} /> <------ Error here.
            </Layout>
          </WagmiConfig>
        </Provider>
      </ApolloProvider>
    </SWRConfig>
  );
}


Does anyone know what could be the issue? Or where I can find some info of this change for pages directory _app.tsx file? Thanks in advance! Kind regards,

0 Replies