Skip to content

GraphQL Error Field "image" must not have a selection since type string has no subfields #11412

@AlexandraVlasenko

Description

@AlexandraVlasenko

DESCRIPTION
1)GraphQL
screenshot from 2019-01-30 17-23-50
2)Markdown
screenshot from 2019-01-30 17-42-10

STEPS TO REPRODUCE

1)Install plugins: gatsby-transformer-sharp, gatsby-plugin-sharp, gatsby-image, gatsby-transformer-remark, gatsby-source-filesystem
2)Paste plugins into gatsby-config.js
screenshot from 2019-01-30 17-33-10
3)Write query in GraphQL

EXPECTED RESULT
Excpectd to see childImageSharp in Image like this but insted got a mistake:

screenshot from 2019-01-30 17-38-11

ACTUAL RESULT

Get a mistake: "Field "image" must not have a selection since type string has no subfields"
screenshot from 2019-01-30 17-44-25

ENVIRONMENT

System:
OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 8.10.0 - /usr/bin/node
npm: 3.5.2 - /usr/bin/npm
Languages:
Python: 2.7.15 - /usr/bin/python
Browsers:
Chrome: 71.0.3578.98
Firefox: 64.0
npmPackages:
gatsby: 2.0.93 => 2.0.93
gatsby-image: ^2.0.0-rc.4 => 2.0.0-rc.4
gatsby-plugin-favicon: ^3.1.4 => 3.1.5
gatsby-plugin-google-analytics: next => 2.0.0-rc.2
gatsby-plugin-lodash: ^3.0.3 => 3.0.3
gatsby-plugin-lunr: ^1.0.0 => 1.3.0
gatsby-plugin-netlify: 2.0.0-beta.5 => 2.0.0-beta.5
gatsby-plugin-netlify-cms: ^3.0.0 => 3.0.11
gatsby-plugin-offline: ^2.0.21 => 2.0.22
gatsby-plugin-react-helmet: next => 3.0.0-rc.1
gatsby-plugin-react-next: ^1.0.11 => 1.0.11
gatsby-plugin-robots-txt: ^1.2.0 => 1.4.0
gatsby-plugin-root-import: ^2.0.4 => 2.0.5
gatsby-plugin-sass: next => 2.0.0-rc.2
gatsby-plugin-sharp: ^2.0.19 => 2.0.19
gatsby-plugin-sitemap: next => 2.0.0-rc.2
gatsby-remark-typography: git+https://github.com/humanseelabs/gatsby-remark-typography.git => 1.0.0
gatsby-source-filesystem: ^2.0.1-rc.6 => 2.0.1-rc.6
gatsby-transformer-remark: ^2.1.1-rc.5 => 2.1.1-rc.5
gatsby-transformer-sharp: ^2.1.13 => 2.1.13
npmGlobalPackages:
gatsby-cli: 2.4.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions