gatsby-starter-prismic icon indicating copy to clipboard operation
gatsby-starter-prismic copied to clipboard

GraphQL errors when creating page

Open zzulanas opened this issue 5 years ago • 0 comments

So I'm not sure the reason behind this error, looking online got me `nowhere.

ERROR #11321  PLUGIN

"gatsby-node.js" threw an error while running the createPages lifecycle:

runner.query(...).then is not a function

  17 |
  18 |   const result = await wrapper(
> 19 |     graphql(`
     |     ^
  20 |       {
  21 |         allPrismicPost {
  22 |           edges {

File: gatsby-node.js:19:5



  TypeError: runner.query(...).then is not a function

  - graphql-runner.js:11
    [zerohourmovement]/[gatsby]/dist/bootstrap/graphql-runner.js:11:59

  - gatsby-node.js:19 Object.exports.createPages
    /Users/zacharyzulanas/Documents/ProgrammingProjects/zerohourmovement/gatsby-node.js:19:5

  - api-runner-node.js:248 runAPI
    [zerohourmovement]/[gatsby]/dist/utils/api-runner-node.js:248:37

  - api-runner-node.js:367 Promise.catch.decorateEvent.pluginName
    [zerohourmovement]/[gatsby]/dist/utils/api-runner-node.js:367:15

  - debuggability.js:384 Promise._execute
    [zerohourmovement]/[bluebird]/js/release/debuggability.js:384:9

  - promise.js:518 Promise._resolveFromExecutor
    [zerohourmovement]/[bluebird]/js/release/promise.js:518:18

  - promise.js:103 new Promise
    [zerohourmovement]/[bluebird]/js/release/promise.js:103:10

  - api-runner-node.js:366
    [zerohourmovement]/[gatsby]/dist/utils/api-runner-node.js:366:12

  - util.js:16 tryCatcher
    [zerohourmovement]/[bluebird]/js/release/util.js:16:23

  - reduce.js:166 Object.gotValue
    [zerohourmovement]/[bluebird]/js/release/reduce.js:166:18

  - reduce.js:155 Object.gotAccum
    [zerohourmovement]/[bluebird]/js/release/reduce.js:155:25

  - util.js:16 Object.tryCatcher
    [zerohourmovement]/[bluebird]/js/release/util.js:16:23

  - promise.js:547 Promise._settlePromiseFromHandler
    [zerohourmovement]/[bluebird]/js/release/promise.js:547:31

  - promise.js:604 Promise._settlePromise
    [zerohourmovement]/[bluebird]/js/release/promise.js:604:18

  - promise.js:649 Promise._settlePromise0
    [zerohourmovement]/[bluebird]/js/release/promise.js:649:10

  - promise.js:729 Promise._settlePromises
    [zerohourmovement]/[bluebird]/js/release/promise.js:729:18


failed createPages - 0.084s

Everytime I try and run gatsby develop this error pops up. I've configured my API calls to Prismic correctly, so I'm pretty sure that's fine. This looks more like a GraphQL error, should I update or downgrade my GraphQL version?

zzulanas avatar Jan 27 '20 02:01 zzulanas