본문 바로가기

컴퓨터/Error

uninitialized constant TZInfo::Timezone 해결책

아마도 글 제목과 같은 애러가 뜨신 분들은 

No source of timezone data could be found.

위 같은 이런 애러가 떠서

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

위 같은 코드를 넣어서 생긴 오류일거에요 위 코드를 지우고

platforms :mingw, :x64_mingw, :mswin, :jruby do
  gem 'tzinfo', '>= 1', '< 3'
  gem 'tzinfo-data'
end

 

이렇게 써주면 됩니다

https://github.com/tzinfo/tzinfo/issues/144

 

Exception on jekyll serve (Uninitialized constant) · Issue #144 · tzinfo/tzinfo

When setting up the Gemfile did I encounter the following exception during bundle exec jekyll serve --livereload: jekyll 3.9.2 | Error: uninitialized constant TZInfo::Timezone tz = TZInfo::Timezone...

github.com

저도 이 글을 보고 해결했으니 참고하세요