title: NextJS Property 'Component' does not exist on type 'App<{}, {}, {}>'
body: <p>I'm using NextJS with Typescript and when I try to build the code I get the following error in the _app.tsx file:</p>
  <blockquote>
  <p>Property 'Component' does not exist on type 'App&lt;{}, {}, {}&gt;'.</p>
  </blockquote>
  <p>I get Component from AppProps type ('next/app'), this is the code:</p>
  <pre><code>import React from &quot;react&quot;;
  import { CssBaseline } from &quot;@material-ui/core&quot;;
  import { ThemeProvider } from &quot;@material-ui/core/styles&quot;;
  import theme from &quot;../themes&quot;;
  import AppProps from &quot;next/app&quot;;
  
  export default function MyApp({ Component, pageProps }: AppProps) {
    return (
      &lt;ThemeProvider theme={theme}&gt;
        &lt;CssBaseline /&gt;
        &lt;Component {...pageProps} /&gt;
      &lt;/ThemeProvider&gt;
    );
  }
  </code></pre>
  <p>Any thoughts?</p>