gqlify icon indicating copy to clipboard operation
gqlify copied to clipboard

latest graphql causes error again!

Open sangche opened this issue 6 years ago • 1 comments

Describe the bug when try quickstart in codesandbox, the latest dependency graphql 14.2.1 throws the following error:

/sandbox/node_modules/@gqlify/server/lib/rootNode.js:247
        this.defBuilder._typeDefinitionsMap[name] = typeDefNode;
                                                  ^

TypeError: Cannot set property 'PageInfo' of undefined
    at RootNode.buildObjectType (/sandbox/node_modules/@gqlify/server/lib/rootNode.js:247:51)
    at RootNode.addObjectType (/sandbox/node_modules/@gqlify/server/lib/rootNode.js:93:23)
    at RelayPlugin.init (/sandbox/node_modules/@gqlify/server/lib/plugins/relay.js:58:14)
    at /sandbox/node_modules/@gqlify/server/lib/generator.js:22:24
    at Array.forEach (<anonymous>)
    at Generator.generate (/sandbox/node_modules/@gqlify/server/lib/generator.js:17:22)
    at Gqlify.createServerConfig (/sandbox/node_modules/@gqlify/server/lib/gqlify.js:107:34)
    at Gqlify.createApolloConfig (/sandbox/node_modules/@gqlify/server/lib/gqlify.js:116:33)
    at Object.<anonymous> (/sandbox/index.js:28:40)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
[nodemon] app crashed - waiting for file changes before starting...

To Reproduce run on codesadgbox

Expected behavior run as normal

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Browser chrome

Additional context explicit downgrade to graphql 14.1.1 fixed the problem

sangche avatar Apr 05 '19 03:04 sangche

Duplicate of #54.

alexandrethsilva avatar Apr 10 '19 12:04 alexandrethsilva