pierreberchtold / gatsby-cockpit-advanced-layout

A guide to use cockpit layout with custom components
4 stars 0 forks source link

Gatsby is not running + /install neither + Markdown question #1

Open ThiagoMiranda opened 6 years ago

ThiagoMiranda commented 6 years ago

Hi.. I've cloned your project and I getting the following errors:

Cockpit

When I type localhost/install it redirects me to a auth/login page. So I've figured it out that the user/password was root. I've logged in.

Website

When I try to launch using npm run develop I get this error:

terminal
error Plugin gatsby-plugin-cockpit returned an error

  TypeError: regions.map is not a function

  - cockpit.js:42 CockpitHelpers.getCockpitRegions
    [website]/[gatsby-plugin-cockpit]/helpers/cockpit.js:42:32

Can you help me with that? I guess it's related to my absence of a "fresh install" ( you can see some erros on the collections pages ): screen shot 2018-04-14 at 13 40 10

A final question: Does cockpit supports Markdown with Gatbsy? More specific using the remark plugin

pierreberchtold commented 6 years ago

Hi! Thanx for your feedback. You can find some more information on this Post: https://medium.com/@pierreberchtold/gatsby-cockpit-layout-field-e908f4dbd87b

Concerning you Issue: you have to install the LayoutComponents Addon in Cockpit: https://github.com/agentejo/LayoutComponents And maybe check you API Key.

Concerning Markdown: I never tried the remark plugins. But I updated the repository now:

ThiagoMiranda commented 6 years ago

@pierreberchtold I've created an issue on the plugin repo: https://github.com/ginetta/ginetta-gatsby-source-plugin/issues/3 Basically I was wondering if your plugin can make the same approach that the gatsby-source-plugin makes in this line: https://github.com/mpartipilo/gatsby-source-cockpit/blob/master/gatsby-node.js#L115 ( actually this would fit like a glove for my company's project because I'm using the transformer-remark together with the Gatsby Remark Component )