gatsby: [1.0] Gatsbygram Error: UNHANDLED REJECTION Invariant Violation: RelayCompilerContext: Duplicate document named `allImages`.

Gatsbygram is erroring out in the CI and not exiting. The full log is here: https://ci.appveyor.com/project/KyleAMathews/gatsby/build/1.0.370/job/40qel5sx059fbmyi

npm run build
> gatsby-example-image-gallery@1.0.0 build C:\projects\gatsby\examples\gatsbygram
> gatsby build
bin/gatsby: time since started: 0.097
bin/cli: time since started: 0.189
lib/bootstrap/index.js time since started: 1.203 sec
open and validate gatsby-config.js: 6.453ms
initial loading: 1590.370ms
copy gatsby files: 29.342ms
initial sourcing and transforming nodes: 534.850ms
(node:2552) Warning: No such label 'building schema' for console.timeEnd()
createPages: 149.637ms
createPagesStatefully: 14.281ms
UNHANDLED REJECTION Invariant Violation: RelayCompilerContext: Duplicate document named `allImages`. GraphQL fragments and roots must have unique names.
    at invariant (C:\projects\gatsby\examples\gatsbygram\node_modules\fbjs\lib\invariant.js:44:15)
    at RelayCompilerContext.add (C:\projects\gatsby\examples\gatsbygram\node_modules\relay-compiler\lib\RelayCompilerContext.js:61:34)
    at C:\projects\gatsby\examples\gatsbygram\node_modules\relay-compiler\lib\RelayCompilerContext.js:70:18
    at Array.reduce (native)
    at RelayCompilerContext.addAll (C:\projects\gatsby\examples\gatsbygram\node_modules\relay-compiler\lib\RelayCompilerContext.js:69:18)
    at Runner._callee3$ (C:\projects\gatsby\examples\gatsbygram\node_modules\gatsby\dist\internal-plugins\query-runner\query-compiler.js:198:51)
    at tryCatch (C:\projects\gatsby\examples\gatsbygram\node_modules\regenerator-runtime\runtime.js:65:40)
    at Generator.invoke [as _invoke] (C:\projects\gatsby\examples\gatsbygram\node_modules\regenerator-runtime\runtime.js:303:22)
    at Generator.prototype.(anonymous function) [as next] (C:\projects\gatsby\examples\gatsbygram\node_modules\regenerator-runtime\runtime.js:117:21)
    at step (C:\projects\gatsby\examples\gatsbygram\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
    at C:\projects\gatsby\examples\gatsbygram\node_modules\babel-runtime\helpers\asyncToGenerator.js:35:14
    at new Promise (C:\projects\gatsby\examples\gatsbygram\node_modules\core-js\library\modules\es6.promise.js:191:7)
    at Runner.<anonymous> (C:\projects\gatsby\examples\gatsbygram\node_modules\babel-runtime\helpers\asyncToGenerator.js:14:12)
    at Runner.write (C:\projects\gatsby\examples\gatsbygram\node_modules\gatsby\dist\internal-plugins\query-runner\query-compiler.js:235:22)
    at Runner._callee$ (C:\projects\gatsby\examples\gatsbygram\node_modules\gatsby\dist\internal-plugins\query-runner\query-compiler.js:110:55)
    at tryCatch (C:\projects\gatsby\examples\gatsbygram\node_modules\regenerator-runtime\runtime.js:65:40)
UNHANDLED REJECTION Invariant Violation: RelayCompilerContext: Duplicate document named `allImages`. GraphQL fragments and roots must have unique names.
    at invariant (C:\projects\gatsby\examples\gatsbygram\node_modules\fbjs\lib\invariant.js:44:15)
    at RelayCompilerContext.add (C:\projects\gatsby\examples\gatsbygram\node_modules\relay-compiler\lib\RelayCompilerContext.js:61:34)
    at C:\projects\gatsby\examples\gatsbygram\node_modules\relay-compiler\lib\RelayCompilerContext.js:70:18
    at Array.reduce (native)
    at RelayCompilerContext.addAll (C:\projects\gatsby\examples\gatsbygram\node_modules\relay-compiler\lib\RelayCompilerContext.js:69:18)
    at Runner._callee3$ (C:\projects\gatsby\examples\gatsbygram\node_modules\gatsby\dist\internal-plugins\query-runner\query-compiler.js:198:51)
    at tryCatch (C:\projects\gatsby\examples\gatsbygram\node_modules\regenerator-runtime\runtime.js:65:40)
    at Generator.invoke [as _invoke] (C:\projects\gatsby\examples\gatsbygram\node_modules\regenerator-runtime\runtime.js:303:22)
    at Generator.prototype.(anonymous function) [as next] (C:\projects\gatsby\examples\gatsbygram\node_modules\regenerator-runtime\runtime.js:117:21)
    at step (C:\projects\gatsby\examples\gatsbygram\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
    at C:\projects\gatsby\examples\gatsbygram\node_modules\babel-runtime\helpers\asyncToGenerator.js:35:14
    at new Promise (C:\projects\gatsby\examples\gatsbygram\node_modules\core-js\library\modules\es6.promise.js:191:7)
    at Runner.<anonymous> (C:\projects\gatsby\examples\gatsbygram\node_modules\babel-runtime\helpers\asyncToGenerator.js:14:12)
    at Runner.write (C:\projects\gatsby\examples\gatsbygram\node_modules\gatsby\dist\internal-plugins\query-runner\query-compiler.js:235:22)
    at Runner._callee$ (C:\projects\gatsby\examples\gatsbygram\node_modules\gatsby\dist\internal-plugins\query-runner\query-compiler.js:110:55)
    at tryCatch (C:\projects\gatsby\examples\gatsbygram\node_modules\regenerator-runtime\runtime.js:65:40)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 37 (23 by maintainers)

Commits related to this issue

Most upvoted comments

Now i’m having node-gyp issues, and it’s late here. I’ll check it out tomorrow, I need to sleep 😃

Great, I’ll test it out!