jlengstorf / authoring-gatsby-themes

22 stars 16 forks source link

Styles on theme not applied #1

Closed jonniebigodes closed 5 years ago

jonniebigodes commented 5 years ago

Description

Following the course posted on egghead.io all goes well until part 13.

Following the steps on how to consume a theme into a gatsby application i've ran into some issues with the styles not being applied.

Steps to reproduce

- Added the following to `theme.js` file:
```javascript
import {theme as BaseTheme} from '@jlengstorf/gatsby-theme-events/src/theme'

export const theme={
    ...BaseTheme,
    colors:{
        ...BaseTheme.colors,
        primary:'blue'
    }
}

export default ({children})=>(<>{children}</>)



- Restarted the server and i'm presented with the following:
![theme_error_3](https://user-images.githubusercontent.com/22988955/60758054-5ce2df00-a00a-11e9-9ca4-564ceb985d25.png)

Feel free to provide feedback
Thanks in advance
jonniebigodes commented 5 years ago

Figured it out. Ran yarn upgrade and gatsby clean && gatsby develop and it seems to be working correctly.