Graphql failing(?)

Dear Community,

My build is failing giving me the following error in the log:
" warning Plugin gatsby-source-filesystem tried to define the GraphQL type File, which has already been defined by the plugin null."

My repo is here, just fyi: (although I certainly appreciate that support isn’t at liberty to pore through source-code)

https://github.com/RecessPlayWorks/rpw-calendar-widget

I believe the culprit might be one of my 3 graphql queries: I have tested each in graphical an they don’t reproduce errors. :thinking:

I am an intermediate graphql person, but I have not seen this error before.

I wonder whether some kind soul could help me out.

I have a notion that I have some type error… The query isn’t getting something back and doesn’t know how to deal with it somehow. I have only one (String!) type “definition”.

All of the “frontmatter” that I’m querying is strings. I’ve declared null on no “leaves” of the “data tree”… so I’m really at a loss.

Many thanks in advance for anyone who might be able to help.

Cheers,
rpw

---------------------- build error log---------------------------------------
11:22:59 AM: Build ready to start
11:23:01 AM: build-image version: 9cade8af58c2cf3a17a1e9433d2e979149488837
11:23:01 AM: build-image tag: v3.3.5
11:23:01 AM: buildbot version: 2d05064ce3dd2eb95d282a24602ab707dd9581e8
11:23:01 AM: Fetching cached dependencies
11:23:02 AM: Starting to download cache of 128.0MB
11:23:03 AM: Finished downloading cache in 1.52881252s
11:23:03 AM: Starting to extract cache
11:23:08 AM: Finished extracting cache in 4.827028771s
11:23:08 AM: Finished fetching cache in 6.417016678s
11:23:08 AM: Starting to prepare the repo for build
11:23:08 AM: Preparing Git Reference refs/heads/master
11:23:09 AM: Starting build script
11:23:09 AM: Installing dependencies
11:23:09 AM: Started restoring cached node version
11:23:13 AM: Finished restoring cached node version
11:23:14 AM: v10.17.0 is already installed.
11:23:15 AM: Now using node v10.17.0 (npm v6.11.3)
11:23:15 AM: Attempting ruby version 2.6.2, read from environment
11:23:17 AM: Using ruby version 2.6.2
11:23:17 AM: Using PHP version 5.6
11:23:17 AM: Started restoring cached node modules
11:23:17 AM: Finished restoring cached node modules
11:23:17 AM: Installing NPM modules using NPM version 6.11.3
11:23:38 AM: > core-js-pure@3.5.0 postinstall /opt/build/repo/node_modules/core-js-pure
11:23:38 AM: > node -e “try{require(’./postinstall’)}catch(e){}”
11:23:38 AM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
11:23:38 AM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
11:23:38 AM: > https://opencollective.com/core-js
11:23:38 AM: > https://www.patreon.com/zloirock
11:23:38 AM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
11:23:38 AM: > gatsby-telemetry@1.1.44 postinstall /opt/build/repo/node_modules/gatsby-telemetry
11:23:38 AM: > node src/postinstall.js || true
11:23:38 AM: > core-js@2.6.11 postinstall /opt/build/repo/node_modules/gatsby/node_modules/core-js
11:23:38 AM: > node -e “try{require(’./postinstall’)}catch(e){}”
11:23:38 AM: > gatsby-cli@2.8.18 postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli
11:23:38 AM: > node scripts/postinstall.js
11:23:38 AM: > gatsby@2.18.11 postinstall /opt/build/repo/node_modules/gatsby
11:23:38 AM: > node scripts/postinstall.js
11:23:41 AM: npm
11:23:41 AM: WARN tsutils@3.17.1 requires a peer of 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 but none is installed. You must install peer dependencies yourself.
11:23:41 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/chokidar/node_modules/fsevents):
11:23:41 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
11:23:41 AM: npm WARN
11:23:41 AM: optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
11:23:41 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
11:23:41 AM: added 106 packages from 59 contributors, removed 7 packages, updated 51 packages and audited 26165 packages in 21.912s
11:23:41 AM: found 0 vulnerabilities
11:23:41 AM: NPM modules installed
11:23:41 AM: Started restoring cached go cache
11:23:41 AM: Finished restoring cached go cache
11:23:41 AM: unset GOOS;
11:23:41 AM: unset GOARCH;
11:23:41 AM: export GOROOT=’/opt/buildhome/.gimme/versions/go1.12.linux.amd64’;
11:23:41 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
11:23:41 AM: go version >&2;
11:23:41 AM: export GIMME_ENV=’/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’;
11:23:41 AM: go version go1.12 linux/amd64
11:23:41 AM: Installing missing commands
11:23:41 AM: Verify run directory
11:23:41 AM: Executing user command: gatsby build
11:23:44 AM: success open and validate gatsby-configs - 0.093s
11:23:45 AM: success load plugins - 1.379s
11:23:45 AM: success onPreInit - 0.001s
11:23:46 AM: success delete html and css files from previous builds - 0.015s
11:23:46 AM: success initialize cache - 0.009s
11:23:46 AM: success copy gatsby files - 0.037s
11:23:46 AM: success onPreBootstrap - 0.011s
11:23:46 AM: success createSchemaCustomization - 0.008s
11:23:47 AM: success source and transform nodes - 1.173s
11:23:47 AM: warning Plugin gatsby-source-filesystem tried to define the GraphQL type File, which has already been defined by the plugin null.
11:23:47 AM: success building schema - 0.499s
11:23:47 AM: success createPages - 0.045s
11:23:47 AM: success createPagesStatefully - 0.086s
11:23:47 AM: success onPreExtractQueries - 0.002s
11:23:47 AM: success update schema - 0.047s
11:23:48 AM: success extract queries from components - 0.388s
11:23:48 AM: success write out requires - 0.005s
11:23:48 AM: success write out redirect data - 0.001s
11:23:48 AM: success Build manifest and related icons - 0.001s
11:23:48 AM: success onPostBootstrap - 0.003s
11:23:48 AM: ⠀
11:23:48 AM: info bootstrap finished - 6.349 s
11:23:48 AM: ⠀
11:24:09 AM: failed Building production JavaScript and CSS bundles - 20.752s
11:24:09 AM: error Generating JavaScript bundles failed
11:24:09 AM: Can’t resolve ‘gsap’ in ‘/opt/build/repo/src/components/calendar’
11:24:09 AM: not finished run queries - 21.126s
11:24:09 AM: Skipping functions preparation step: no functions directory set
11:24:09 AM: Caching artifacts
11:24:09 AM: Started saving node modules
11:24:09 AM: Finished saving node modules
11:24:09 AM: Started saving pip cache
11:24:09 AM: Finished saving pip cache
11:24:09 AM: Started saving emacs cask dependencies
11:24:09 AM: Finished saving emacs cask dependencies
11:24:09 AM: Started saving maven dependencies
11:24:09 AM: Finished saving maven dependencies
11:24:09 AM: Started saving boot dependencies
11:24:09 AM: Finished saving boot dependencies
11:24:09 AM: Started saving go dependencies
11:24:09 AM: Finished saving go dependencies
11:24:09 AM: Error running command: Build script returned non-zero exit code: 1
11:24:09 AM: failed during stage ‘building site’: Build script returned non-zero exit code: 1
11:24:09 AM: Failing build: Failed to build site
11:24:09 AM: Finished processing build request in 1m8.239184505s

As I mentioned to you in the helpdesk, I don’t think the warning is related to the failure, whihc is here:

You seem to be missing a gsap module in your setup.

I am getting the same warning on a fresh install of gatsby starter default during gatsby develop. The site builds but the warning persists.

Local Develop: warn Plugin gatsby-source-filesystem tried to define the GraphQL type File, which has already been defined by the plugin

Netlify Build: 9:48:52 PM: warning Plugin gatsby-source-filesystem tried to define the GraphQL type File, which has already been defined by the plugin null.

Here is the site: https://gatsby-netlify-faunadb-test.netlify.com/
The repo: https://github.com/chokeul8r/gatsby-netlify-faunadb-test

If you are seeing the issue locally as well, then that warning is likely specific to Gatsby. You’ll probably get more insight if you ask their support what that warning means. Otherwise, it doesn’t look like your build failed, nor does it look like there are any issues with your deploy.