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

Preview Not Working in Post Editor #2120

Closed
elaine-jackson opened this issue Feb 22, 2019 · 2 comments
Closed

Preview Not Working in Post Editor #2120

elaine-jackson opened this issue Feb 22, 2019 · 2 comments

Comments

@elaine-jackson
Copy link

Describe the bug
The preview pane does not appear properly and instead displays an error.
TypeError: Cannot read property 'markdownRemark' of undefined

cms.js:343 TypeError: Cannot read property 'markdownRemark' of undefined
    at BlogPostTemplate.render (cms.js:1369)
    at Oi (cms.js:343)
    at ki (cms.js:343)
    at Ii (cms.js:343)
    at Ua (cms.js:343)
    at za (cms.js:343)
    at Ts (cms.js:343)
    at Ss (cms.js:343)
    at Ps (cms.js:343)
    at On (cms.js:343)
ua @ cms.js:343
i.function.i.componentDidCatch.n.callback @ cms.js:343
ta @ cms.js:343
ea @ cms.js:343
ks @ cms.js:343
Ts @ cms.js:343
Ss @ cms.js:343
Ps @ cms.js:343
On @ cms.js:343
cms.js:159 TypeError: Cannot read property 'markdownRemark' of undefined
    at BlogPostTemplate.render (cms.js:1369)
    at Oi (cms.js:343)
    at ki (cms.js:343)
    at Ii (cms.js:343)
    at Ua (cms.js:343)
    at za (cms.js:343)
    at Ts (cms.js:343)
    at Ss (cms.js:343)
    at Ps (cms.js:343)
    at On (cms.js:343)

To Reproduce
Setup a gatsbyjs starter blog and add Netlify CMS to it. Try to create a post, and watch the preview pane fail. I followed the steps at https://github.com/netlify/netlify-cms/blob/bfa62df589ea7795a097c296b35510f7bfd6f948/website/content/docs/using-netlify-cms-with-gatsby.md exactly as described.

Expected behavior
Beside the editor a preview pane will appear.

Screenshots
screen shot 2019-02-22 at 2 34 43 pm

Applicable Versions:

  • Netlify CMS version: [e.g. 2.0.4]
  • Git provider: [e.g. GitHub, BitBucket]
  • OS: [e.g. Windows 7]
  • Browser version [e.g. chrome 22, safari 11]
  • Node.JS version:

CMS configuration

Additional context

@erquhart
Copy link
Contributor

Thanks for posting this - that guide is in review and this is valuable feedback.

@erquhart
Copy link
Contributor

Fixed in the latest version of the guide 👍

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

2 participants