Skip to content

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

@imvsharma

Description

@imvsharma

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions