API issue on aws server



  • getting this error after pushing code to aws server.
    working fine on local machine.
    "message": "Failed to find class User in namespaces [App, App\Models] for directive @paginate.",
    "exception": "Nuwave\Lighthouse\Exceptions\DefinitionException",
    "file": "/var/app/current/vendor/nuwave/lighthouse/src/Schema/Directives/BaseDirective.php",
    "line": 197,



  • Can you share some steps that you are trying to do?


Log in to reply