Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnail is absent in MarkdownRemark #4367

Closed
arnondora opened this issue Mar 5, 2018 · 1 comment
Closed

Thumbnail is absent in MarkdownRemark #4367

arnondora opened this issue Mar 5, 2018 · 1 comment

Comments

@arnondora
Copy link

I quite a bit weird when I open the post page from the link of others page, thumbnail address has null value but when I open the post page via a direct link or just refresh the page, the thumbnail is shown. This problem happens only in build only, the develop one works smoothly.

Environment

Gatsby version: 1.9.199
Node.js version: 6.11.4
Operating System: macOS 10.13.3

Step to reproduce

  • Open new gatsby project along with installing markdownremark plugin
  • Create template as a post page with thumbnail
  • Create Post Content in markdown style
  • Build the project by run gatsby build
  • Serve project by run gatsby serve

You may checkout this repository in develop branch to see the problem and the result is in this site

@arnondora
Copy link
Author

When I want to use the thumbnail, I have to check the existent of thumbnail since there's a post that has no thumbnail. I use get() from lodash. The way I import is

import get from 'lodash/get'

I think importing in this way might cause the problem, since I change to import get like this

import { get } from 'lodash'

The problem is gone...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant