Skip to content

Instantly share code, notes, and snippets.

@bsgreenb
Created December 24, 2019 19:24
Show Gist options
  • Save bsgreenb/86efed8f3aa97b2176568228ac7657f8 to your computer and use it in GitHub Desktop.
Save bsgreenb/86efed8f3aa97b2176568228ac7657f8 to your computer and use it in GitHub Desktop.
Maximum call stack Bug on Gatsby/Contentful
npm info using [email protected]
npm info using [email protected]
npm verb run-script [ 'predevbuild', 'devbuild', 'postdevbuild' ]
npm info lifecycle [email protected]~predevbuild: [email protected]
npm info lifecycle [email protected]~devbuild: [email protected]
> [email protected] devbuild /Users/ben/sources/glowyshit
> GATSBY_ACTIVE_ENV=development gatsby build && gatsby serve
Environment detected as: development
Disqus Shortname: glowyshit-staging
success open and validate gatsby-configs - 0.042s
success load plugins - 0.595s
warn The Google Analytics plugin requires a tracking ID. Did you mean to add it?
success onPreInit - 0.009s
success delete html and css files from previous builds - 0.010s
success initialize cache - 0.009s
success copy gatsby files - 0.039s
success onPreBootstrap - 0.009s
success createSchemaCustomization - 0.004s
Starting to fetch data from Contentful
Fetching default locale
default locale is : en-US
contentTypes fetched 8
ERROR #11321 PLUGIN
"gatsby-source-contentful" threw an error while running the sourceNodes lifecycle:
Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
- lodash.js:2402 arrayLikeKeys
[glowyshit]/[lodash]/lodash.js:2402:16
- lodash.js:13307 keys
[glowyshit]/[lodash]/lodash.js:13307:36
- lodash.js:4900
[glowyshit]/[lodash]/lodash.js:4900:21
- lodash.js:2990 baseForOwn
[glowyshit]/[lodash]/lodash.js:2990:24
- lodash.js:13400 Function.mapValues
[glowyshit]/[lodash]/lodash.js:13400:7
- normalize.js:70 fixIds
[glowyshit]/[gatsby-source-contentful]/normalize.js:70:28
- normalize.js:79
[glowyshit]/[gatsby-source-contentful]/normalize.js:79:22
- lodash.js:13401
[glowyshit]/[lodash]/lodash.js:13401:38
- lodash.js:4905
[glowyshit]/[lodash]/lodash.js:4905:15
- lodash.js:2990 baseForOwn
[glowyshit]/[lodash]/lodash.js:2990:24
- lodash.js:13400 Function.mapValues
[glowyshit]/[lodash]/lodash.js:13400:7
- normalize.js:70 fixIds
[glowyshit]/[gatsby-source-contentful]/normalize.js:70:28
- normalize.js:83
[glowyshit]/[gatsby-source-contentful]/normalize.js:83:12
- lodash.js:13401
[glowyshit]/[lodash]/lodash.js:13401:38
- lodash.js:4905
[glowyshit]/[lodash]/lodash.js:4905:15
- lodash.js:2990 baseForOwn
[glowyshit]/[lodash]/lodash.js:2990:24
- lodash.js:13400 Function.mapValues
[glowyshit]/[lodash]/lodash.js:13400:7
- normalize.js:70 fixIds
[glowyshit]/[gatsby-source-contentful]/normalize.js:70:28
- normalize.js:83
[glowyshit]/[gatsby-source-contentful]/normalize.js:83:12
- lodash.js:13401
[glowyshit]/[lodash]/lodash.js:13401:38
- lodash.js:4905
[glowyshit]/[lodash]/lodash.js:4905:15
- lodash.js:2990 baseForOwn
[glowyshit]/[lodash]/lodash.js:2990:24
- lodash.js:13400 Function.mapValues
[glowyshit]/[lodash]/lodash.js:13400:7
- normalize.js:70 fixIds
[glowyshit]/[gatsby-source-contentful]/normalize.js:70:28
- normalize.js:83
[glowyshit]/[gatsby-source-contentful]/normalize.js:83:12
- lodash.js:13401
[glowyshit]/[lodash]/lodash.js:13401:38
- lodash.js:4905
[glowyshit]/[lodash]/lodash.js:4905:15
- lodash.js:2990 baseForOwn
[glowyshit]/[lodash]/lodash.js:2990:24
- lodash.js:13400 Function.mapValues
[glowyshit]/[lodash]/lodash.js:13400:7
- normalize.js:70 fixIds
[glowyshit]/[gatsby-source-contentful]/normalize.js:70:28
- normalize.js:83
[glowyshit]/[gatsby-source-contentful]/normalize.js:83:12
- lodash.js:13401
[glowyshit]/[lodash]/lodash.js:13401:38
- lodash.js:4905
[glowyshit]/[lodash]/lodash.js:4905:15
- lodash.js:2990 baseForOwn
[glowyshit]/[lodash]/lodash.js:2990:24
- lodash.js:13400 Function.mapValues
[glowyshit]/[lodash]/lodash.js:13400:7
- normalize.js:70 fixIds
[glowyshit]/[gatsby-source-contentful]/normalize.js:70:28
- normalize.js:83
[glowyshit]/[gatsby-source-contentful]/normalize.js:83:12
- lodash.js:13401
[glowyshit]/[lodash]/lodash.js:13401:38
- lodash.js:4905
[glowyshit]/[lodash]/lodash.js:4905:15
- lodash.js:2990 baseForOwn
[glowyshit]/[lodash]/lodash.js:2990:24
- lodash.js:13400 Function.mapValues
[glowyshit]/[lodash]/lodash.js:13400:7
- normalize.js:70 fixIds
[glowyshit]/[gatsby-source-contentful]/normalize.js:70:28
- normalize.js:83
[glowyshit]/[gatsby-source-contentful]/normalize.js:83:12
- lodash.js:13401
[glowyshit]/[lodash]/lodash.js:13401:38
- lodash.js:4905
[glowyshit]/[lodash]/lodash.js:4905:15
- lodash.js:2990 baseForOwn
[glowyshit]/[lodash]/lodash.js:2990:24
- lodash.js:13400 Function.mapValues
[glowyshit]/[lodash]/lodash.js:13400:7
- normalize.js:70 fixIds
[glowyshit]/[gatsby-source-contentful]/normalize.js:70:28
- normalize.js:83
[glowyshit]/[gatsby-source-contentful]/normalize.js:83:12
- lodash.js:13401
[glowyshit]/[lodash]/lodash.js:13401:38
- lodash.js:4905
[glowyshit]/[lodash]/lodash.js:4905:15
not finished source and transform nodes - 0.371s
npm verb lifecycle [email protected]~devbuild: unsafe-perm in lifecycle true
npm verb lifecycle [email protected]~devbuild: PATH: /Users/ben/.nvm/versions/node/v12.10.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/ben/sources/glowyshit/node_modules/.bin:/Users/ben/.nvm/versions/node/v12.10.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
npm verb lifecycle [email protected]~devbuild: CWD: /Users/ben/sources/glowyshit
npm info lifecycle [email protected]~devbuild: Failed to exec devbuild script
npm verb stack Error: [email protected] devbuild: `GATSBY_ACTIVE_ENV=development gatsby build && gatsby serve`
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (/Users/ben/.nvm/versions/node/v12.10.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
npm verb stack at EventEmitter.emit (events.js:209:13)
npm verb stack at ChildProcess.<anonymous> (/Users/ben/.nvm/versions/node/v12.10.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
npm verb stack at ChildProcess.emit (events.js:209:13)
npm verb stack at maybeClose (internal/child_process.js:1021:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
npm verb pkgid [email protected]
npm verb cwd /Users/ben/sources/glowyshit
npm verb Darwin 18.7.0
npm verb argv "/Users/ben/.nvm/versions/node/v12.10.0/bin/node" "/Users/ben/.nvm/versions/node/v12.10.0/bin/npm" "run" "devbuild" "--verbose"
npm verb node v12.10.0
npm verb npm v6.13.4
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] devbuild: `GATSBY_ACTIVE_ENV=development gatsby build && gatsby serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] devbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]
npm timing npm Completed in 3023ms
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ben/.npm/_logs/2019-12-24T19_22_43_745Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment