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

Hi all, sinds a few days I am getting this error while building. I can’t help it, could someone help me out with it? Site is working all well but products from contentful are not build
Site: aerial-access-new.netlify.app

10:56:28 AM: Build ready to start
10:56:29 AM: build-image version: e4d2dbe4cfec46db257e869258461ded89b75c9b
10:56:29 AM: build-image tag: v3.7.3
10:56:29 AM: buildbot version: 2cb5794cb93042dadefe5dbdc6b35edc34c20454
10:56:30 AM: Fetching cached dependencies
10:56:30 AM: Starting to download cache of 227.2MB
10:56:31 AM: Finished downloading cache in 1.567980959s
10:56:31 AM: Starting to extract cache
10:56:39 AM: Finished extracting cache in 7.604318402s
10:56:39 AM: Finished fetching cache in 9.222000147s
10:56:39 AM: Starting to prepare the repo for build
10:56:39 AM: Preparing Git Reference refs/heads/main
10:56:42 AM: Parsing package.json dependencies
10:56:43 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'public' versus 'public/' in the Netlify UI
10:56:43 AM: Starting build script
10:56:43 AM: Installing dependencies
10:56:43 AM: Python version set to 2.7
10:56:44 AM: Started restoring cached node version
10:56:47 AM: Finished restoring cached node version
10:56:47 AM: Attempting node version 'v14.15.5' from .nvmrc
10:56:47 AM: Downloading and installing node v14.15.5...
10:56:48 AM: Downloading https://nodejs.org/dist/v14.15.5/node-v14.15.5-linux-x64.tar.xz...
10:56:48 AM: Computing checksum with sha256sum
10:56:48 AM: Checksums matched!
10:56:52 AM: Now using node v14.15.5 (npm v6.14.11)
10:56:52 AM: Started restoring cached build plugins
10:56:52 AM: Finished restoring cached build plugins
10:56:52 AM: Attempting ruby version 2.7.1, read from environment
10:56:54 AM: Using ruby version 2.7.1
10:56:54 AM: Using PHP version 5.6
10:56:54 AM: Started restoring cached yarn cache
10:56:54 AM: Finished restoring cached yarn cache
10:56:54 AM: Installing yarn at version 1.22.4
10:56:54 AM: Installing Yarn!
10:56:54 AM: > Downloading tarball...
10:56:54 AM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.oPkIYjdIaZ
10:56:54 AM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
10:56:54 AM:                                  Dload  Upload   Total   Spent    Left  Speed
10:56:54 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
10:56:55 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
10:56:55 AM: 100    79  100    79    0     0    335      0 --:--:-- --:--:-- --:--:--   334
10:56:55 AM: 100    93  100    93    0     0    151      0 --:--:-- --:--:-- --:--:--   151
10:56:55 AM: 100   625  100   625    0     0    706      0 --:--:-- --:--:-- --:--:--   706
10:56:56 AM:   0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
10:56:56 AM: 100 1215k  100 1215k    0     0   969k      0  0:00:01  0:00:01 --:--:-- 7026k
10:56:56 AM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.oPkIYjdIaZ.asc
10:56:56 AM: 100    83  100    83    0     0   1243      0 --:--:-- --:--:-- --:--:--  1243
10:56:56 AM: 100    97  100    97    0     0   1013      0 --:--:-- --:--:-- --:--:--  1013
10:56:56 AM: 100   629  100   629    0     0   5142      0 --:--:-- --:--:-- --:--:--  5142
10:56:56 AM: 100  1028  100  1028    0     0   7644      0 --:--:-- --:--:-- --:--:--  7644
10:56:56 AM: > Verifying integrity...
10:56:56 AM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
10:56:56 AM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
10:56:56 AM: gpg: WARNING: This key is not certified with a trusted signature!
10:56:56 AM: gpg:          There is no indication that the signature belongs to the owner.
10:56:56 AM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
10:56:56 AM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
10:56:56 AM: > GPG signature looks good
10:56:56 AM: > Extracting to ~/.yarn...
10:56:56 AM: > Adding to $PATH...
10:56:56 AM: > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.
10:56:56 AM: NETLIFY_YARN_WORKSPACES feature flag set
10:56:57 AM: {"type":"error","data":"Cannot find the root of your workspace - are you sure you're currently in a workspace?"}
10:56:57 AM: No workspace detected
10:56:57 AM: Started restoring cached node modules
10:56:57 AM: Finished restoring cached node modules
10:56:57 AM: Installing NPM modules using Yarn version 1.22.4
10:56:58 AM: yarn install v1.22.4
10:56:58 AM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
10:56:58 AM: [1/4] Resolving packages...
10:56:59 AM: [2/4] Fetching packages...
10:57:45 AM: info fsevents@2.3.1: The platform "linux" is incompatible with this module.
10:57:45 AM: info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
10:57:45 AM: info fsevents@1.2.13: The platform "linux" is incompatible with this module.
10:57:45 AM: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
10:57:45 AM: [3/4] Linking dependencies...
10:57:45 AM: warning "gatsby > eslint-config-react-app@6.0.0" has unmet peer dependency "babel-eslint@^10.0.0".
10:57:45 AM: warning "gatsby > express-graphql@0.9.0" has incorrect peer dependency "graphql@^14.4.1".
10:57:45 AM: warning "gatsby > @typescript-eslint/eslint-plugin > tsutils@3.21.0" 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".
10:57:45 AM: warning "gatsby > eslint-plugin-graphql > graphql-config > @endemolshinegroup/cosmiconfig-typescript-loader > ts-node@9.1.1" has unmet peer dependency "typescript@>=2.7".
10:57:45 AM: warning " > gatsby-plugin-image@1.4.0" has incorrect peer dependency "gatsby-source-filesystem@^3.0.0-next.0".
10:57:45 AM: warning "gatsby-plugin-image > babel-plugin-remove-graphql-queries@3.4.0" has unmet peer dependency "@babel/core@^7.0.0".
10:57:45 AM: warning "gatsby-plugin-sass > sass-loader@10.1.1" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
10:57:45 AM: warning " > gatsby-source-contentful@5.3.0" has unmet peer dependency "sharp@^0.26.0".
10:57:45 AM: warning " > gatsby-source-filesystem@2.11.1" has incorrect peer dependency "gatsby@^2.2.0".
10:57:45 AM: warning " > gatsby-transformer-sharp@2.12.1" has incorrect peer dependency "gatsby@^2.12.1".
10:57:45 AM: warning " > gatsby-transformer-sharp@2.12.1" has incorrect peer dependency "gatsby-plugin-sharp@^2.0.0-beta.3".
10:58:10 AM: [4/4] Building fresh packages...
10:58:19 AM: success Saved lockfile.
10:58:19 AM: Done in 81.04s.
10:58:19 AM: NPM modules installed using Yarn
10:58:19 AM: Started restoring cached go cache
10:58:19 AM: Finished restoring cached go cache
10:58:19 AM: go version go1.14.4 linux/amd64
10:58:19 AM: go version go1.14.4 linux/amd64
10:58:19 AM: Installing missing commands
10:58:19 AM: Verify run directory
10:58:21 AM: ​
10:58:21 AM: ────────────────────────────────────────────────────────────────
10:58:21 AM:   Netlify Build                                                 
10:58:21 AM: ────────────────────────────────────────────────────────────────
10:58:21 AM: ​
10:58:21 AM: ❯ Version
10:58:21 AM:   @netlify/build 11.5.1
10:58:21 AM: ​
10:58:21 AM: ❯ Flags
10:58:21 AM:   deployId: 608fbabcbc567c0007313d66
10:58:21 AM: ​
10:58:21 AM: ❯ Current directory
10:58:21 AM:   /opt/build/repo
10:58:21 AM: ​
10:58:21 AM: ❯ Config file
10:58:21 AM:   No config file was defined: using default values.
10:58:21 AM: ​
10:58:21 AM: ❯ Context
10:58:21 AM:   production
10:58:21 AM: ​
10:58:21 AM: ────────────────────────────────────────────────────────────────
10:58:21 AM:   1. Build command from Netlify app                             
10:58:21 AM: ────────────────────────────────────────────────────────────────
10:58:21 AM: ​
10:58:21 AM: $ gatsby build
10:58:25 AM: success open and validate gatsby-configs - 0.044s
10:58:25 AM: warning Plugin gatsby-transformer-sharp is not compatible with your gatsby version 3.3.1 - It requires gatsby@^2.12.1
10:58:25 AM: warning Plugin gatsby-source-filesystem is not compatible with your gatsby version 3.3.1 - It requires gatsby@^2.2.0
10:58:25 AM: warning Plugin gatsby-source-filesystem is not compatible with your gatsby version 3.3.1 - It requires gatsby@^2.2.0
10:58:25 AM: warning Warning: there are unknown plugin options for "gatsby-source-filesystem": prettier, eslint, typekit
10:58:25 AM: Please open an issue at ghub.io/gatsby-source-filesystem if you believe this option is valid.
10:58:25 AM: warning Plugin gatsby-transformer-sharp is not compatible with your gatsby version 3.3.1 - It requires gatsby@^2.12.1
10:58:25 AM: warning Plugin gatsby-source-filesystem is not compatible with your gatsby version 3.3.1 - It requires gatsby@^2.2.0
10:58:25 AM: warning Plugin gatsby-source-filesystem is not compatible with your gatsby version 3.3.1 - It requires gatsby@^2.2.0
10:58:25 AM: success load plugins - 0.812s
10:58:26 AM: success onPreInit - 0.121s
10:58:26 AM: success initialize cache - 0.005s
10:58:26 AM: success copy gatsby files - 0.100s
10:58:26 AM: success onPreBootstrap - 0.017s
10:58:26 AM: success createSchemaCustomization - 0.008s
10:58:27 AM: success Contentful: Sync all items - 0.076s - 42/1000 13138.33/s
10:58:27 AM: success Contentful: Fetch data (8cxl6mpst1xl-master) - 0.316s
10:58:27 AM: info Updated entries 15
10:58:27 AM: info Deleted entries 0
10:58:27 AM: info Updated assets 27
10:58:27 AM: info Deleted assets 0
10:58:27 AM: success Contentful: Process data (8cxl6mpst1xl-master) - 0.040s
10:58:27 AM: info Creating 4 Contentful Project nodes
10:58:27 AM: info Creating 4 Contentful ProductCategory nodes
10:58:27 AM: info Creating 7 Contentful Product nodes
10:58:27 AM: info Creating 27 Contentful asset nodes
10:58:27 AM: success Contentful: Create nodes (8cxl6mpst1xl-master) - 0.043s
10:58:27 AM: success Checking for changed pages - 0.000s
10:58:27 AM: success source and transform nodes - 1.139s
10:58:28 AM: success building schema - 1.057s
10:58:28 AM: error "gatsby-node.js" threw an error while running the createPages lifecycle:
10:58:28 AM: Cannot destructure property 'createPage' of 'boundActionCreators' as it is undefined.
10:58:28 AM:   16 | exports.createPages = ({ graphql, boundActionCreators }) => {
10:58:28 AM:   17 |   const path = require(`path`);
10:58:28 AM: > 18 |   const { createPage } = boundActionCreators;
10:58:28 AM:      |           ^
10:58:28 AM:   19 |   return new Promise((resolve, reject) => {
10:58:28 AM:   20 |     graphql(`  21 |       {
10:58:28 AM: 
10:58:28 AM:   TypeError: Cannot destructure property 'createPage' of 'boundActionCreators' a  s it is undefined.
10:58:28 AM:   
10:58:28 AM:   - gatsby-node.js:18 Object.exports.createPages
10:58:28 AM:     /opt/build/repo/gatsby-node.js:18:11
10:58:28 AM:   
10:58:28 AM:   - api-runner-node.js:434 runAPI
10:58:28 AM:     [repo]/[gatsby]/src/utils/api-runner-node.js:434:22
10:58:28 AM:   
10:58:28 AM:   - api-runner-node.js:585 Promise.catch.decorateEvent.pluginName
10:58:28 AM:     [repo]/[gatsby]/src/utils/api-runner-node.js:585:13
10:58:28 AM:   
10:58:28 AM:   - debuggability.js:384 Promise._execute
10:58:28 AM:     [repo]/[bluebird]/js/release/debuggability.js:384:9
10:58:28 AM:   
10:58:28 AM:   - promise.js:518 Promise._resolveFromExecutor
10:58:28 AM:     [repo]/[bluebird]/js/release/promise.js:518:18
10:58:28 AM:   
10:58:28 AM:   - promise.js:103 new Promise
10:58:28 AM:     [repo]/[bluebird]/js/release/promise.js:103:10
10:58:28 AM:   
10:58:28 AM:   - api-runner-node.js:583 
10:58:28 AM:     [repo]/[gatsby]/src/utils/api-runner-node.js:583:16
10:58:28 AM:   
10:58:28 AM:   - util.js:16 tryCatcher
10:58:28 AM:     [repo]/[bluebird]/js/release/util.js:16:23
10:58:28 AM:   
10:58:28 AM:   - reduce.js:166 Object.gotValue
10:58:28 AM:     [repo]/[bluebird]/js/release/reduce.js:166:18
10:58:28 AM:   
10:58:28 AM:   - reduce.js:155 Object.gotAccum
10:58:28 AM:     [repo]/[bluebird]/js/release/reduce.js:155:25
10:58:28 AM:   
10:58:28 AM:   - util.js:16 Object.tryCatcher
10:58:28 AM:     [repo]/[bluebird]/js/release/util.js:16:23
10:58:28 AM:   
10:58:28 AM:   - promise.js:547 Promise._settlePromiseFromHandler
10:58:28 AM:     [repo]/[bluebird]/js/release/promise.js:547:31
10:58:28 AM:   
10:58:28 AM:   - promise.js:604 Promise._settlePromise
10:58:28 AM:     [repo]/[bluebird]/js/release/promise.js:604:18
10:58:28 AM:   
10:58:28 AM:   - promise.js:641 Promise._settlePromiseCtx
10:58:28 AM:     [repo]/[bluebird]/js/release/promise.js:641:10
10:58:28 AM:   
10:58:28 AM:   - async.js:97 _drainQueueStep
10:58:28 AM:     [repo]/[bluebird]/js/release/async.js:97:12
10:58:28 AM:   
10:58:28 AM:   - async.js:86 _drainQueue
10:58:28 AM:     [repo]/[bluebird]/js/release/async.js:86:9
10:58:28 AM:   
10:58:28 AM: 
10:58:28 AM: failed createPages - 0.074s
10:58:28 AM: ​
10:58:28 AM: ────────────────────────────────────────────────────────────────
10:58:28 AM:   "build.command" failed                                        
10:58:28 AM: ────────────────────────────────────────────────────────────────
10:58:28 AM: ​
10:58:28 AM:   Error message
10:58:28 AM:   Command failed with exit code 1: gatsby build
10:58:28 AM: ​
10:58:28 AM:   Error location
10:58:28 AM:   In Build command from Netlify app:
10:58:28 AM:   gatsby build
10:58:28 AM: ​
10:58:28 AM:   Resolved config
10:58:28 AM:   build:
10:58:28 AM:     command: gatsby build
10:58:28 AM:     commandOrigin: ui
10:58:28 AM:     environment:
10:58:28 AM:       - CONTACT_EMAIL
10:58:28 AM:       - GATSBY_CONTENTFUL_ACCESS_TOKEN
10:58:28 AM:       - GATSBY_CONTENTFUL_SPACE_ID
10:58:28 AM:     publish: /opt/build/repo/public
10:58:28 AM:   functionsDirectory: /opt/build/repo/netlify/functions
10:58:28 AM: Caching artifacts
10:58:28 AM: Started saving node modules
10:58:28 AM: Finished saving node modules
10:58:28 AM: Started saving build plugins
10:58:28 AM: Finished saving build plugins
10:58:28 AM: Started saving yarn cache
10:58:29 AM: Finished saving yarn cache
10:58:29 AM: Started saving pip cache
10:58:29 AM: Finished saving pip cache
10:58:29 AM: Started saving emacs cask dependencies
10:58:29 AM: Finished saving emacs cask dependencies
10:58:29 AM: Started saving maven dependencies
10:58:29 AM: Finished saving maven dependencies
10:58:29 AM: Started saving boot dependencies
10:58:29 AM: Finished saving boot dependencies
10:58:29 AM: Started saving rust rustup cache
10:58:29 AM: Finished saving rust rustup cache
10:58:29 AM: Started saving go dependencies
10:58:29 AM: Finished saving go dependencies
10:58:32 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:58:32 AM: Creating deploy upload records
10:58:32 AM: Failing build: Failed to build site
10:58:32 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2
10:58:33 AM: Finished processing build request in 2m3.030659658s

This indicates something wrong with the code. Your property createPage of boundActionCreators is not defined.