payload icon indicating copy to clipboard operation
payload copied to clipboard

Tab `interfaceName` triggers schema error

Open ssyberg opened this issue 2 years ago • 0 comments

Link to reproduction

No response

Describe the Bug

Setting an interfaceName on a tab and reusing that tab declaration triggers a schema error as follows:

/Users/seth/dev/backend/node_modules/graphql/type/schema.js:219
        throw new Error(
              ^
Error: Schema must contain uniquely named types but contains multiple types named "SyndicationsInterface".

I can confirm there are no naming collisions (unless I'm misunderstanding the usage here).

To Reproduce

Create a tab as follows:

{
    type: 'tabs',
    tabs: [
        {
            label: 'Syndications',
            name: 'syndications',
            interfaceName: 'SyndicationsInterface',
            fields: [ ...

Add this tab to 2 collections and attempt to start the development server.

Payload Version

2.5.0

Adapters and Plugins

db-mongodb bundler-webpack

ssyberg avatar Dec 20 '23 14:12 ssyberg