When executing php artisan config:clear, an error is reported: ErrorException : include(e:\wwwroot\object\vendor\composer/../../modules/them eStoreGraphQL/Providers/GraphQLResolverServiceProvider.php): Failed to open stream: no such file or directory
1. When executing php artisan config:clear, an error is reported: ErrorException : include(e:\wwwroot\object\vendor\composer/../../modules/them eStoreGraphQL/Providers/GraphQLResolverServiceProvider.php): Failed to open stream: no such file or directory. as shown in Figure 1
PS E:\wwwroot\object> php artisan config:clear
ErrorException : include(E:\wwwroot\object\vendor\composer/../../Modules/ThemeStoreGraphQL/Providers/GraphQlResolverServiceProvider.php): failed to open stream: No such file or directory
at E:\wwwroot\object\vendor\composer\ClassLoader.php:571
567| * @private
568| */
569| function includeFile($file)
570| {
> 571| include $file;
572| }
573|
Exception trace:
1 include()
E:\wwwroot\object\vendor\composer\ClassLoader.php:571
2 Composer\Autoload\includeFile("E:\wwwroot\object\vendor\composer/../../Modules/ThemeStoreGraphQL/Providers/GraphQlResolverServiceProvider.php")
E:\wwwroot\object\vendor\composer\ClassLoader.php:428
Please use the argument -v to see more details.
2. Confirm the file modules/themestoreGraphQL/providers/GraphQLResolverServiceProvider.php It no longer exists and is renamed: modules/OnlineStoreEthemeGraphQL/Providers/GraphQLResolverServiceProvider.php
3. Execute the composer install command to regenerate vendor\composer\classloader.php. Error: in providerRepository.php line 208: classModules\ThemeStoreGraphQL\Providers\GraphQLResolverServiceProviderNot found script @php artisan package:discover –ansi handling the post-autoload-dump event returned with error code 1. as shown in Figure 2
PS E:\wwwroot\object> composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 29 updates, 0 removals
...
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
In ProviderRepository.php line 208:
Class 'Modules\ThemeStoreGraphQL\Providers\GraphQlResolverServiceProvider' not
found
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
4. The reason is that the providers of /config/app.php contain:\modules\themestoreGraphQL\providers\GraphQlResolverServiceProvider::Class,
5. Execute again: composer install, php artisan config:clear, all run successfully.
PS E:\wwwroot\object> composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
...
Package manifest generated successfully.
111 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
PS E:\wwwroot\object> php artisan config:clear
Configuration cache cleared!

