wonism / gatsby-advanced-blog

Gatsby starter for advanced blog
https://wonism.github.io/
MIT License
125 stars 34 forks source link

Style Components do not work even after adding them to peer review and installing. #9

Closed rjpruitt16 closed 6 years ago

rjpruitt16 commented 6 years ago

I used to get warn error Style Components was not in peer. So, I change the location to peer review as below.

"peerDependencies": { "gatsby": "^2.0.0-beta.19", "react": "^16.4.0", "prop-types": "^15.0.0", "styled-components": "^3.3.3" },

Then, I install styled-components. The warning went away, but the component's css is absent in deployment and gatsby serve.

wonism commented 6 years ago

Thank you for pointing out :) It is resolved with b82f187bf28b048d8b5b6f5c50520c21f121a12f