오류해결/기타 오류
깃허브 블로그 오류 해결하기 (Chirpy 테마)
멍멍댕댕구
2024. 10. 6. 15:15
Git 블로그를 만들기 위해 Chirpy 테마를 설치하는 중 생긴 오류들과 해결 과정입니다. (윈도우 환경)
1) bundle 실행 시 wdm 설치 에러
An error occurred while installing wdm (0.1.1), and Bundler cannot continue.
In Gemfile:
wdm
Gemfile을 보면 다음과 같은 라인이 있습니다.
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
이 부분의 "0.1.1"을 "0.1"로 바꿔주면 간단히 해결됩니다.
gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin]
2) stylesheet 에러
로컬에서는 잘 돌아갔는데, github에 올린 후 Build할 때 에러가 나게 되었습니다.
Error: Can't find stylesheet to import.
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/jekyll-theme-chirpy.scss':
Can't find stylesheet to import.
------------------------------------------------
Jekyll 4.3.4 Please append `--trace` to the `build` command
for any additional information or backtrace.
------------------------------------------------
이 두 가지 에러는 Chirpy 테마의 Upgrade Guide 를 따라 해결 가능합니다.
다음 두 명령어를 차례로 실행시켜주시면 됩니다.
npm run build
git add assets/js/dist _sass/dist -f
이후 commit & push를 하면 에러가 사라지고 빌드되는 것을 볼 수 있습니다.