Skip to content

Cannot destructure property category of 'undefined' or 'null'. #8

Description

@v2gt

An error occured after the steps:

gatsby new my-orga https://github.com/orgapp/gatsby-orga
cd my-orga
gatsby develop

error log:

gatsby new my-orga https://github.com/orgapp/gatsby-orga

info Creating new site from git: https://github.com/orgapp/gatsby-orga.git
Cloning into 'my-orga'...
remote: Enumerating objects: 37, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 235 (delta 10), reused 21 (delta 7), pack-reused 198
Receiving objects: 100% (235/235), 1.04 MiB | 509.00 KiB/s, done.
Resolving deltas: 100% (114/114), done.
success Created starter directory layout
info Installing packages...
yarn install v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.0.7: The platform "linux" is incompatible with this module.
info "fsevents@2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "gatsby > eslint-config-react-app@4.0.1" has incorrect peer dependency "eslint-plugin-flowtype@2.x".
warning "gatsby > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
Done in 9.99s.
info Initialising git in my-orga
Initialized empty Git repository in /home/zhangsan/my-orga/.git/
info Create initial git commit in my-orga
info
Your new Gatsby site has been successfully bootstrapped. Start developing it by running:
$ cd my-orga
$ gatsby develop

:$ cd my-orga/
:
/my-orga$ gatsby develop

success open and validate gatsby-configs - 0.026 s
success load plugins - 0.130 s
success onPreInit - 0.013 s
success initialize cache - 0.022 s
success copy gatsby files - 0.027 s
success onPreBootstrap - 0.019 s

ERROR #11321 PLUGIN

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

Cannot destructure property category of 'undefined' or 'null'.

TypeError: Cannot destructure property category of 'undefined' or 'null'.

  • gatsby-node.js:40 Object.exports.onCreateNode
    /home/zhangsan/my-orga/gatsby-node.js:40:47

  • api-runner-node.js:234 runAPI
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:234:37

  • api-runner-node.js:347 resolve
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:347:15

  • debuggability.js:313 Promise._execute
    [my-orga]/[bluebird]/js/release/debuggability.js:313:9

  • promise.js:488 Promise._resolveFromExecutor
    [my-orga]/[bluebird]/js/release/promise.js:488:18

  • promise.js:79 new Promise
    [my-orga]/[bluebird]/js/release/promise.js:79:10

  • api-runner-node.js:346 Promise.mapSeries.plugin
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:346:12

  • util.js:16 tryCatcher
    [my-orga]/[bluebird]/js/release/util.js:16:23

  • reduce.js:155 Object.gotValue
    [my-orga]/[bluebird]/js/release/reduce.js:155:18

  • reduce.js:144 Object.gotAccum
    [my-orga]/[bluebird]/js/release/reduce.js:144:25

  • util.js:16 Object.tryCatcher
    [my-orga]/[bluebird]/js/release/util.js:16:23

  • promise.js:517 Promise._settlePromiseFromHandler
    [my-orga]/[bluebird]/js/release/promise.js:517:31

  • promise.js:574 Promise._settlePromise
    [my-orga]/[bluebird]/js/release/promise.js:574:18

  • promise.js:619 Promise._settlePromise0
    [my-orga]/[bluebird]/js/release/promise.js:619:10

  • promise.js:699 Promise._settlePromises
    [my-orga]/[bluebird]/js/release/promise.js:699:18

  • async.js:138 _drainQueueStep
    [my-orga]/[bluebird]/js/release/async.js:138:12

ERROR #11321 PLUGIN

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

Cannot destructure property category of 'undefined' or 'null'.

TypeError: Cannot destructure property category of 'undefined' or 'null'.

  • gatsby-node.js:40 Object.exports.onCreateNode
    /home/zhangsan/my-orga/gatsby-node.js:40:47

  • api-runner-node.js:234 runAPI
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:234:37

  • api-runner-node.js:347 resolve
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:347:15

  • debuggability.js:313 Promise._execute
    [my-orga]/[bluebird]/js/release/debuggability.js:313:9

  • promise.js:488 Promise._resolveFromExecutor
    [my-orga]/[bluebird]/js/release/promise.js:488:18

  • promise.js:79 new Promise
    [my-orga]/[bluebird]/js/release/promise.js:79:10

  • api-runner-node.js:346 Promise.mapSeries.plugin
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:346:12

  • util.js:16 tryCatcher
    [my-orga]/[bluebird]/js/release/util.js:16:23

  • reduce.js:155 Object.gotValue
    [my-orga]/[bluebird]/js/release/reduce.js:155:18

  • reduce.js:144 Object.gotAccum
    [my-orga]/[bluebird]/js/release/reduce.js:144:25

  • util.js:16 Object.tryCatcher
    [my-orga]/[bluebird]/js/release/util.js:16:23

  • promise.js:517 Promise._settlePromiseFromHandler
    [my-orga]/[bluebird]/js/release/promise.js:517:31

  • promise.js:574 Promise._settlePromise
    [my-orga]/[bluebird]/js/release/promise.js:574:18

  • promise.js:619 Promise._settlePromise0
    [my-orga]/[bluebird]/js/release/promise.js:619:10

  • promise.js:699 Promise._settlePromises
    [my-orga]/[bluebird]/js/release/promise.js:699:18

  • async.js:138 _drainQueueStep
    [my-orga]/[bluebird]/js/release/async.js:138:12

ERROR #11321 PLUGIN

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

Cannot destructure property category of 'undefined' or 'null'.

TypeError: Cannot destructure property category of 'undefined' or 'null'.

  • gatsby-node.js:40 Object.exports.onCreateNode
    /home/zhangsan/my-orga/gatsby-node.js:40:47

  • api-runner-node.js:234 runAPI
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:234:37

  • api-runner-node.js:347 resolve
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:347:15

  • debuggability.js:313 Promise._execute
    [my-orga]/[bluebird]/js/release/debuggability.js:313:9

  • promise.js:488 Promise._resolveFromExecutor
    [my-orga]/[bluebird]/js/release/promise.js:488:18

  • promise.js:79 new Promise
    [my-orga]/[bluebird]/js/release/promise.js:79:10

  • api-runner-node.js:346 Promise.mapSeries.plugin
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:346:12

  • util.js:16 tryCatcher
    [my-orga]/[bluebird]/js/release/util.js:16:23

  • reduce.js:155 Object.gotValue
    [my-orga]/[bluebird]/js/release/reduce.js:155:18

  • reduce.js:144 Object.gotAccum
    [my-orga]/[bluebird]/js/release/reduce.js:144:25

  • util.js:16 Object.tryCatcher
    [my-orga]/[bluebird]/js/release/util.js:16:23

  • promise.js:517 Promise._settlePromiseFromHandler
    [my-orga]/[bluebird]/js/release/promise.js:517:31

  • promise.js:574 Promise._settlePromise
    [my-orga]/[bluebird]/js/release/promise.js:574:18

  • promise.js:619 Promise._settlePromise0
    [my-orga]/[bluebird]/js/release/promise.js:619:10

  • promise.js:699 Promise._settlePromises
    [my-orga]/[bluebird]/js/release/promise.js:699:18

  • async.js:138 _drainQueueStep
    [my-orga]/[bluebird]/js/release/async.js:138:12

success source and transform nodes - 0.267 s
success Add explicit types - 0.017 s
success Add inferred types - 0.097 s
success Processing types - 0.059 s
success building schema - 0.231 s

ERROR #85901 GRAPHQL

There was an error in your GraphQL query:

Cannot query field "fields" on type "OrgContent".

File: gatsby-node.js:8:27

ERROR

Cannot query field "fields" on type "OrgContent".

GraphQLError: Cannot query field "fields" on type "OrgContent".

  • new Promise

  • graphql-runner.js:18
    [my-orga]/[gatsby]/dist/bootstrap/graphql-runner.js:18:10

  • gatsby-node.js:8 Object.exports.createPages
    /home/zhangsan/my-orga/gatsby-node.js:8:27

  • api-runner-node.js:234 runAPI
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:234:37

  • api-runner-node.js:347 resolve
    [my-orga]/[gatsby]/dist/utils/api-runner-node.js:347:15

  • debuggability.js:313 Promise._execute
    [my-orga]/[bluebird]/js/release/debuggability.js:313:9

  • promise.js:488 Promise._resolveFromExecutor
    [my-orga]/[bluebird]/js/release/promise.js:488:18

  • promise.js:79 new Promise
    [my-orga]/[bluebird]/js/release/promise.js:79:10

⠋ createPages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions