draftbox-co / gatsby-ghost-novela-theme

A Feature rich Gatsby theme plugin for creating blogs from Ghost.
https://ghost-novela-preview.draftbox.co/
12 stars 8 forks source link

TypeError: Cannot read property 'variables' of undefined #6

Open imvsharma opened 4 years ago

imvsharma commented 4 years ago

Hi Draftbox

I found one issue in Gatsby-ghost-novela-theme.

Cannot read property 'variables' of undefined

gatsby-config.js:181 theme [gatsby-starter-ghost]/[@draftbox-co]/gatsby-ghost-novela-theme/gatsby-config.js:181:45

resolve: `@draftbox-co/gatsby-plugin-css-variables`,
        options: {
          variables: siteConfig.themeConfig.variables,
        },

siteConfig.js

module.exports = {
  siteUrl: `https://gatsby.ghost.org`, // Site domain. Do not include a trailing slash!

  postsPerPage: 12, // Number of posts shown on paginated pages (changes this requires sometimes to delete the cache)

  siteTitleMeta: `Ghost Gatsby Starter`, // This allows an alternative site title for meta data for pages.
  siteDescriptionMeta: `A starter template to build amazing static websites with Ghost and Gatsby`, // This allows an alternative site description for meta data for pages.

  shareImageWidth: 1000, // Change to the width of your default share image
  shareImageHeight: 523, // Change to the height of your default share image

  shortTitle: `Ghost`, // Used for App manifest e.g. Mobile Home Screen
  siteIcon: `favicon.png`, // Logo in /static dir used for SEO, RSS, and App manifest
  backgroundColor: `#e9e9e9`, // Used for Offline Manifest
  themeColor: `#15171A`, // Used for Offline Manifest
};

I saw siteConfig.js: In this file I'm not able to find themeConfig key

thandaanda commented 3 years ago

Hi @imvsharma ,

Theme uses configurations of gatsby-config.js from the path https://github.com/draftbox-co/gatsby-ghost-novela-theme/blob/master/example/gatsby-config.js.

Let us know in case of any questions.