gatsby-theme-authoring

Tutorial: https://egghead.io/lessons/gatsby-configure-a-gatsby-theme-to-take-options https://www.gatsbyjs.org/tutorial/building-a-theme/#set-up-sitegatsby-configjs

hey all, I'm stuck and getting an error at the same spot, when I run yarn workspace site develop:

  • the event directory is not being generated,
  • ERROR #85907 GRAPHQL

Screen Shot 2019-08-26 at 12 37 48

  • Also just found another error when I run yarn workspace gatsby-theme-events develop
  • ERROR #10126 CONFIG

Screen Shot 2019-08-26 at 14 16 10

I've checked my parentheses in gatsby-theme-events/gatsby-config.js and it seems OK
gatsby-theme-events/gatsby-config.js

module.exports = ({ contentPath = 'data', basePath = '/' }) => ({
  plugins: [
    {
      resolve: 'gatsby-source-filesystem',
      options: {
        path: contentPath
      }
    },
    {
      resolve: 'gatsby-transformer-yaml',
      options: {
        typeName: 'Event'
      }
    }
  ]
})


site/gatsby.config.js

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-theme-events',
      options: {
        contentPath: 'events',
        basePath: '/events'
      }
    }
  ]
}


gatsby-theme-events/src/templates/event.js

import React from 'react'
import { graphql } from 'gatsby'
import Layout from '../components/layout'
import Event from '../components/event'

export const query = graphql`
  query($eventID: String!) {
    event(id: { eq: $eventID }) {
      name
      url
      startDate(formatString: "MMMM D, YYYY")
      endDate(formatString: "MMMM D, YYYY")
      location
      slug
    }
  }
`

const EventTemplate = ({ data: { event } }) => (
  <Layout>
    <Event {...event} />
  </Layout>
)

export default EventTemplate


It is my first time trying out Gatsby, any help would be greatly appreciated! Cheers! :)
My Repo: https://github.com/MoodyBones/gatsby-theme-authoring