title: TsconfigPathsPlugin type not compatible with webpack 5
body: <p>I'm trying to upgrade to webpack 5, but I'm now getting a type error when
  trying to use the TsconfigPathsPlugin. (npm tsconfig-paths-webpack-plugin).</p>
  <p>I need this plugin so that I can resolve the alias paths in my files. You can see a usage example here: <a href="https://betterprogramming.pub/the-right-usage-of-aliases-in-webpack-typescript-4418327f47fa" rel="noreferrer">https://betterprogramming.pub/the-right-usage-of-aliases-in-webpack-typescript-4418327f47fa</a></p>
  <pre class="lang-js prettyprint-override"><code>resolve: {
      extensions: [...],
  
      // resolve aliases from tsconfig.server.json
      plugins: [
        new TsconfigPathsPlugin({ // type error here
          configFile: './tsconfig.server.json',
        }),
      ],
  
      alias: {...},
  },
  </code></pre>
  <p>I get the following error:</p>
  <pre><code>Type 'TsconfigPathsPlugin' is not assignable to type '&quot;...&quot; | ResolvePluginInstance'.
  Type 'TsconfigPathsPlugin' is not assignable to type 'ResolvePluginInstance'.
  Types of property 'apply' are incompatible.
  </code></pre>
  <p>I have the feeling that this isn't a widespread issue as I can't see any mention
  of it in other places, but I would have thought that I'd be able to find at least someone
  that has come across the same problem.</p>