Skip to content

[Gatsby-plugin-contentful] excerpt returns an empty string #10381

@smakosh

Description

@smakosh

Description

I'm trying to get a description for each article managed on Contentful using excerpt but I get an empty string instead.

Expected result

I should get the article's text but limited to the number of characters I passed to pruneLength

Actual result

screen shot 2018-12-10 at 11 56 55 am

Environment

System:
    OS: macOS 10.14
    CPU: x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 10.13.0 - /usr/local/bin/node
    Yarn: 1.12.1 - /usr/local/bin/yarn
    npm: 6.4.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 70.0.3538.110
    Safari: 12.0
  npmPackages:
    gatsby: ^2.0.61 => 2.0.61
    gatsby-image: ^2.0.20 => 2.0.22
    gatsby-plugin-canonical-urls: ^2.0.8 => 2.0.8
    gatsby-plugin-catch-links: ^2.0.9 => 2.0.9
    gatsby-plugin-favicon: ^3.1.4 => 3.1.4
    gatsby-plugin-feed: ^2.0.11 => 2.0.11
    gatsby-plugin-manifest: ^2.0.9 => 2.0.11
    gatsby-plugin-netlify: ^2.0.6 => 2.0.6
    gatsby-plugin-nprogress: ^2.0.7 => 2.0.7
    gatsby-plugin-offline: ^2.0.16 => 2.0.18
    gatsby-plugin-react-helmet: ^3.0.2 => 3.0.4
    gatsby-plugin-robots-txt: ^1.3.0 => 1.3.0
    gatsby-plugin-sharp: ^2.0.12 => 2.0.14
    gatsby-plugin-sitemap: ^2.0.3 => 2.0.3
    gatsby-plugin-styled-components: ^3.0.4 => 3.0.4
    gatsby-remark-copy-linked-files: ^2.0.7 => 2.0.7
    gatsby-remark-images: ^3.0.1 => 3.0.1
    gatsby-remark-prismjs: ^3.1.4 => 3.1.4
    gatsby-remark-responsive-iframe: ^2.0.7 => 2.0.7
    gatsby-remark-smartypants: ^2.0.7 => 2.0.7
    gatsby-source-contentful: ^2.0.17 => 2.0.17
    gatsby-source-filesystem: ^2.0.8 => 2.0.10
    gatsby-transformer-remark: ^2.1.15 => 2.1.15
    gatsby-transformer-sharp: ^2.1.8 => 2.1.9
  npmGlobalPackages:
    gatsby-cli: 2.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssue with a clear description that the community can help with.stale?Issue that may be closed soon due to the original author not responding any more.status: needs reproductionThis issue needs a simplified reproduction of the bug for further troubleshooting.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions