Open AimanAlmureish opened 1 year ago
Any ideas on how to fix it?
Try this:
UPDATED
import type { AppProps } from "next/app";
import { type I18nProps, I18nProvider } from "next-rosetta";
import type { MyLocale } from "../i18n";
export default function App({ Component, pageProps }: AppProps<I18nProps<MyLocale>>) {
return (
<I18nProvider table={pageProps.table}>
...
</I18nProvider>
);
}
So sorry for the late response!
With my code I get this now Type 'AppPropsWithLayout' is not generic.ts(2315)
This is because I am using the layout. Any fixes for this?
I am trying to implement it on a Next js project and I get the following error in the _app.tsx
The
pageProps.table
is showing this errorProperty 'table' does not exist on type '{}'