thecodingmachine / graphqlite

Use PHP Attributes/Annotations to declare your GraphQL API

Home Page:https://graphqlite.thecodingmachine.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot create schema: no namespace for types found

smilesrg opened this issue · comments

I've got an issue with Symfony 5.4 and thecodingmachine/graphqlite:"5.0.2"

In SchemaFactory.php line 395:
                                                                               
  Cannot create schema: no namespace for types found (You must call the SchemaFactory::addTypeNamespace() at least once). 
commented

I also encountered such a problem. The reason turned out to be the latest version of symfony/dependency-injection. Downgraded to a previous version

Are you using the Symfony GraphQLite bundle? I suspect the issue is related to that and not GraphQLite.

Yes, I'm using "thecodingmachine/graphqlite-bundle": "^5.4" with all updated depencencies.

You'll want to direct any issues with the bundle and how it's handling autoloading to that repo, specifically.