nuwave / lighthouse

A framework for serving GraphQL from Laravel
https://lighthouse-php.com
MIT License
3.33k stars 434 forks source link

Failed to find class App\GraphQl\Queries\TodoQuery in namespaces [] for directive @paginate #2549

Closed mwangaben closed 2 months ago

mwangaben commented 2 months ago

Discussed in https://github.com/nuwave/lighthouse/discussions/2548

Originally posted by **mwangaben** April 25, 2024 I get an error when run `php artisan lighthouse:validate-schema` on production serve but this does not happen on local development on local development i am using Macos Ventura and php8.2.16 on production serve iam using Debian 10 and php8.2.18 i have tested even on the another machine that runs Macos Ventura too but no error. Please could it be a specific php extention that my be missing on my production serve or i am missing something here Screenshot 2024-04-25 at 05 39 12 on development all tests are passing as per below image Screenshot 2024-04-25 at 05 45 44