{"action":"opened","issue":{"url":"https://api.github.com/repos/contentful/rich-text/issues/53","repository_url":"https://api.github.com/repos/contentful/rich-text","labels_url":"https://api.github.com/repos/contentful/rich-text/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/contentful/rich-text/issues/53/comments","events_url":"https://api.github.com/repos/contentful/rich-text/issues/53/events","html_url":"https://github.com/contentful/rich-text/issues/53","id":392162589,"node_id":"MDU6SXNzdWUzOTIxNjI1ODk=","number":53,"title":"Embedded entries breaks Gatsby build","user":{"login":"goras","id":5002141,"node_id":"MDQ6VXNlcjUwMDIxNDE=","avatar_url":"https://avatars2.githubusercontent.com/u/5002141?v=4","gravatar_id":"","url":"https://api.github.com/users/goras","html_url":"https://github.com/goras","followers_url":"https://api.github.com/users/goras/followers","following_url":"https://api.github.com/users/goras/following{/other_user}","gists_url":"https://api.github.com/users/goras/gists{/gist_id}","starred_url":"https://api.github.com/users/goras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goras/subscriptions","organizations_url":"https://api.github.com/users/goras/orgs","repos_url":"https://api.github.com/users/goras/repos","events_url":"https://api.github.com/users/goras/events{/privacy}","received_events_url":"https://api.github.com/users/goras/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-18T13:44:00Z","updated_at":"2018-12-18T13:44:00Z","closed_at":null,"author_association":"NONE","body":"\r\nHi!\r\n\r\nI just got started with Gatsby and Contentful and I recently found this plugin. So far regular styling (paragraphs, bold, italic etc) works great, but whenever I add an embedded entry or an embedded inline entry the Gatsby build fails.\r\n\r\nThe error is listed below and I realise it's the gatsby-source-contentful that throws the error, but I guess it's still related to this plugin? Anyone had the same problem or got any idea of what I'm missing?\r\n\r\nThanks!\r\n\r\nHere's a summary of my setup:\r\n\r\n**node**: 11.2.0\r\n**gatsby-cli**: 2.4.5,\r\n**gatsby-source-contentful**: 2.0.20\r\n**@contentful/gatsby-transformer-contentful-richtext**: 12.1.2\r\n\r\ngatsby-config.js\r\n```\r\n[\r\n  ...\r\n  {\r\n      resolve: 'gatsby-source-contentful',\r\n      options: {\r\n        accessToken: CONTENTFUL_ACCESS_TOKEN,\r\n        environment: CONTENTFUL_ENV,\r\n        host: CONTENTFUL_HOST,\r\n        spaceId: CONTENTFUL_SPACE_ID,\r\n      },\r\n    },\r\n  }\r\n  '@contentful/gatsby-transformer-contentful-richtext',\r\n  ...\r\n]\r\n```\r\n\r\n\r\nError when running ``gatsby develop --no-cache``:\r\n\r\n```\r\nsuccess open and validate gatsby-configs — 0.013 s\r\nsuccess load plugins — 0.209 s\r\nsuccess onPreInit — 0.513 s\r\nsuccess delete html and css files from previous builds — 0.067 s\r\nsuccess initialize cache — 0.063 s\r\nsuccess copy gatsby files — 0.178 s\r\nsuccess onPreBootstrap — 0.010 s\r\n⠂ source and transform nodesStarting to fetch data from Contentful\r\nFetching default locale\r\n⠄ source and transform nodesdefault locale is : en-US\r\n⢀ source and transform nodescontentTypes fetched 15\r\nUpdated entries  94\r\nDeleted entries  0\r\nUpdated assets  15\r\nDeleted assets  0\r\nFetch Contentful data: 248.906ms\r\nRestricted field found for ContentType Container and field parent. Prefixing with contentful.\r\nRestricted field found for ContentType Container and field parent. Prefixing with contentful.\r\nerror Plugin gatsby-source-contentful returned an error\r\n\r\n\r\n  RangeError: Maximum call stack size exceeded\r\n\r\n  - Object\r\n\r\n  - lodash.js:1198\r\n    [gatsby]/[lodash]/lodash.js:1198:19\r\n\r\n  - lodash.js:3490 baseKeys\r\n    [gatsby]/[lodash]/lodash.js:3490:16\r\n\r\n  - lodash.js:13308 keys\r\n    [gatsby]/[lodash]/lodash.js:13308:60\r\n\r\n  - lodash.js:4906\r\n    [gatsby]/[lodash]/lodash.js:4906:21\r\n\r\n  - lodash.js:2996 baseForOwn\r\n    [gatsby]/[lodash]/lodash.js:2996:24\r\n\r\n  - lodash.js:4880\r\n    [gatsby]/[lodash]/lodash.js:4880:18\r\n\r\n  - lodash.js:9344 Function.forEach\r\n    [gatsby]/[lodash]/lodash.js:9344:14\r\n\r\n  - node-tracking.js:29 addRootNodeToInlineObject\r\n    [gatsby]/[gatsby]/dist/db/node-tracking.js:29:7\r\n\r\n  - node-tracking.js:29 _.each.o\r\n    [gatsby]/[gatsby]/dist/db/node-tracking.js:29:23\r\n\r\n  - lodash.js:4911\r\n    [gatsby]/[lodash]/lodash.js:4911:15\r\n\r\n  - lodash.js:2996 baseForOwn\r\n    [gatsby]/[lodash]/lodash.js:2996:24\r\n\r\n  - lodash.js:4880\r\n    [gatsby]/[lodash]/lodash.js:4880:18\r\n\r\n  - lodash.js:9344 Function.forEach\r\n    [gatsby]/[lodash]/lodash.js:9344:14\r\n\r\n  - node-tracking.js:29 addRootNodeToInlineObject\r\n    [gatsby]/[gatsby]/dist/db/node-tracking.js:29:7\r\n\r\n  - node-tracking.js:29 _.each.o\r\n    [gatsby]/[gatsby]/dist/db/node-tracking.js:29:23\r\n\r\n  - lodash.js:516 arrayEach\r\n    [gatsby]/[lodash]/lodash.js:516:11\r\n\r\n  - lodash.js:9344 Function.forEach\r\n    [gatsby]/[lodash]/lodash.js:9344:14\r\n\r\n  - node-tracking.js:29 addRootNodeToInlineObject\r\n    [gatsby]/[gatsby]/dist/db/node-tracking.js:29:7\r\n\r\n  - node-tracking.js:29 _.each.o\r\n    [gatsby]/[gatsby]/dist/db/node-tracking.js:29:23\r\n\r\n  - lodash.js:4911\r\n    [gatsby]/[lodash]/lodash.js:4911:15\r\n\r\n  - lodash.js:2996 baseForOwn\r\n    [gatsby]/[lodash]/lodash.js:2996:24\r\n\r\n\r\nsuccess source and transform nodes — 0.635 s\r\nerror Cannot read property 'internal' of undefined\r\n\r\n\r\n  TypeError: Cannot read property 'internal' of undefined\r\n\r\n  - infer-graphql-type.js:219 _.uniqBy.v\r\n    [gatsby]/[gatsby]/dist/schema/infer-graphql-type.js:219:44\r\n\r\n  - lodash.js:4282 baseUniq\r\n    [gatsby]/[lodash]/lodash.js:4282:35\r\n\r\n  - lodash.js:8420 Function.uniqBy\r\n    [gatsby]/[lodash]/lodash.js:8420:40\r\n\r\n  - infer-graphql-type.js:219 inferFromFieldName\r\n    [gatsby]/[gatsby]/dist/schema/infer-graphql-type.js:219:15\r\n\r\n  - infer-graphql-type.js:346 _.each\r\n    [gatsby]/[gatsby]/dist/schema/infer-graphql-type.js:346:23\r\n\r\n  - lodash.js:4911\r\n    [gatsby]/[lodash]/lodash.js:4911:15\r\n\r\n  - lodash.js:2996 baseForOwn\r\n    [gatsby]/[lodash]/lodash.js:2996:24\r\n\r\n  - lodash.js:4880\r\n    [gatsby]/[lodash]/lodash.js:4880:18\r\n\r\n  - lodash.js:9344 Function.forEach\r\n    [gatsby]/[lodash]/lodash.js:9344:14\r\n\r\n  - infer-graphql-type.js:325 _inferObjectStructureFromNodes\r\n    [gatsby]/[gatsby]/dist/schema/infer-graphql-type.js:325:5\r\n\r\n  - infer-graphql-type.js:395 inferObjectStructureFromNodes\r\n    [gatsby]/[gatsby]/dist/schema/infer-graphql-type.js:395:10\r\n\r\n  - build-node-types.js:135 inferFields\r\n    [gatsby]/[gatsby]/dist/schema/build-node-types.js:135:26\r\n\r\n  - build-node-types.js:184 fields\r\n    [gatsby]/[gatsby]/dist/schema/build-node-types.js:184:19\r\n\r\n  - Array.forEach\r\n\r\n\r\nerror UNHANDLED REJECTION\r\n\r\n\r\n  TypeError: Cannot read property 'internal' of undefined\r\n\r\n  - infer-graphql-type.js:219 _.uniqBy.v\r\n    [gatsby]/[gatsby]/dist/schema/infer-graphql-type.js:219:44\r\n\r\n  - lodash.js:4282 baseUniq\r\n    [gatsby]/[lodash]/lodash.js:4282:35\r\n\r\n  - lodash.js:8420 Function.uniqBy\r\n    [gatsby]/[lodash]/lodash.js:8420:40\r\n\r\n  - infer-graphql-type.js:219 inferFromFieldName\r\n    [gatsby]/[gatsby]/dist/schema/infer-graphql-type.js:219:15\r\n\r\n  - infer-graphql-type.js:346 _.each\r\n    [gatsby]/[gatsby]/dist/schema/infer-graphql-type.js:346:23\r\n\r\n  - lodash.js:4911\r\n    [gatsby]/[lodash]/lodash.js:4911:15\r\n\r\n  - lodash.js:2996 baseForOwn\r\n    [gatsby]/[lodash]/lodash.js:2996:24\r\n\r\n  - lodash.js:4880\r\n    [gatsby]/[lodash]/lodash.js:4880:18\r\n\r\n  - lodash.js:9344 Function.forEach\r\n    [gatsby]/[lodash]/lodash.js:9344:14\r\n\r\n  - infer-graphql-type.js:325 _inferObjectStructureFromNodes\r\n    [gatsby]/[gatsby]/dist/schema/infer-graphql-type.js:325:5\r\n\r\n  - infer-graphql-type.js:395 inferObjectStructureFromNodes\r\n    [gatsby]/[gatsby]/dist/schema/infer-graphql-type.js:395:10\r\n\r\n  - build-node-types.js:135 inferFields\r\n    [gatsby]/[gatsby]/dist/schema/build-node-types.js:135:26\r\n\r\n  - build-node-types.js:184 fields\r\n    [gatsby]/[gatsby]/dist/schema/build-node-types.js:184:19\r\n\r\n  - Array.forEach\r\n```"}}
{"actor":{"display_login":"goras"}}