How do I apply path alias patch? I am updating a site from Drupal 8.7 to Drupal 8.8, and after running a drush updb, I encountered this error:
[error]  TypeError: Argument 2 passed to Drupal\pathauto\AliasStorageHelper::__construct() must be an instance of Drupal\path_alias\AliasRepositoryInterface, instance of Drupal\Core\Path\AliasRepository given, called in drupal/core/lib/Drupal/Component/DependencyInjection/Container.php on line 289 in Drupal\pathauto\AliasStorageHelper-&gt;__construct() (line 79 of drupal/modules/contrib/pathauto/src/AliasStorageHelper.php) #0 drupal/core/lib/Drupal/Component/DependencyInjection/Container.php(289): Drupal\pathauto\AliasStorageHelper-&gt;__construct(Object(Drupal\Core\Config\ConfigFactory), Object(Drupal\Core\Path\AliasRepository), Object(Drupal\Core\Database\Driver\mysql\Connection), Object(Drupal\pathauto\VerboseMessenger), Object(Drupal\Core\StringTranslation\TranslationManager), Object(Drupal\Core\Entity\EntityTypeManager))

I found a similar issue in this link here and there seems to be a solution(patch) for it.
EDIT:
I ran a composer command attempting to fix the path alias error:
composer require 'drupal/pathauto:1.x-dev@dev'
Ran composer update, and drush updb.
The following is the error displayed by the console:
&gt;  [error]  Argument 2 passed to Drupal\pathauto\AliasStorageHelper::__construct() must be an instance of Drupal\path_alias\AliasRepositoryInterface, instance of Drupal\Core\Path\AliasRepository given
&gt;  [error]  Update failed: block_field_update_8001
&gt; PHP Fatal error:  Uncaught ReflectionException: Class Drupal\path_alias\AliasRepository does not exist in /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php:1174
&gt; Stack trace:
&gt; #0 /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(1174): ReflectionClass-&gt;__construct('Drupal\\path_ali...')
&gt; #1 /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(634): Symfony\Component\DependencyInjection\ContainerBuilder-&gt;createService(Object(Symfony\Component\DependencyInjection\Definition), Array, true, 'path_alias.repo...')
&gt; #2 /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(1281): Symfony\Component\DependencyInjection\ContainerBuilder-&gt;doGet('path_alias.repo...', 1, Array, true)
&gt; #3 /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php(1238): Symfony\Component\DependencyInjection\ContainerBuilder-&gt;doResolveServices(Object(Symfony\Component\DependencyInjection\Reference), Array, true)
&gt; #4 /var/www/html/docroot/ in /var/www/html/docroot/vendor/symfony/dependency-injection/ContainerBuilder.php on line 1174
 [error]  Update aborted by: system_update_8803, block_field_update_8001
 [error]  Finished performing updates.

Is there anything else I can do with the pathauto module?
Do you mean of &quot;apply a patch&quot; on a drupal module?
You should use composer-patches, the github page cleary explain of setup it and use for a patch modules\core.
In your case it should be somethings like:
{
  &quot;require&quot;: {
    &quot;cweagans/composer-patches&quot;: &quot;~1.0&quot;,
    &quot;drupal/core-recommended&quot;: &quot;^8.8&quot;,
  },
  &quot;config&quot;: {
    &quot;preferred-install&quot;: &quot;source&quot;
  },
  &quot;extra&quot;: {
    &quot;patches&quot;: {
      &quot;drupal/pathauto&quot;: {
        &quot;issue name&quot;: &quot;https://www.drupal.org/files/issues/2020-04-27/3131286-3.patch&quot;
      }
    }
  }
}

However, this issue is already &quot;fixed&quot;, so it is already in the dev version of the module. Applying on the stable one could fail, so you'd just have to switch to the dev version of the module, aka
composer require 'drupal/pathauto:1.x-dev@dev'

Please note that is best to avoid on production dev version unless strictly necessary. In other words, if you switch to dev, you should update to the next release of pathauto asap it's released