Web/React.js
[Gatsby] index 페이지 css 로딩 오류
_eun
2021. 1. 11. 16:58
로컬에서 실행할 때는 정상적으로 작동되었지만, deploy 후 github.io에서 실행했을 때 css가 정상적으로 작동하지 않는 상황이 발생했다.
- 해결
내가 styled-components 만 add 해놓고,
gatsby-plugin-styled-components
를 add 하지 않았다.
$ yarn add gatsby-plugin-styled-components
728x90