Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gem rails-i18nがメジャーバージョンアップしたためエラーが発生します #118

Open
ssshhhooota opened this issue Jan 31, 2022 · 0 comments

Comments

@ssshhhooota
Copy link

エラー内容はこちら

/usr/local/bundle/gems/rails-i18n-7.0.1/lib/rails_i18n/../../rails/pluralization/tr.rb:3:in `load_rb': uninitialized constant RailsI18n::Pluralization::OneOther (NameError)
        from /usr/local/bundle/gems/i18n-1.9.1/lib/i18n/backend/base.rb:234:in `eval'
        from /usr/local/bundle/gems/i18n-1.9.1/lib/i18n/backend/base.rb:234:in `load_rb'
        from /usr/local/bundle/gems/i18n-1.9.1/lib/i18n/backend/base.rb:224:in `load_file'
        from /usr/local/bundle/gems/i18n-1.9.1/lib/i18n/backend/base.rb:16:in `block in load_translations'
        from /usr/local/bundle/gems/i18n-1.9.1/lib/i18n/backend/base.rb:16:in `each'
        from /usr/local/bundle/gems/i18n-1.9.1/lib/i18n/backend/base.rb:16:in `load_translations'
        from /usr/local/bundle/gems/i18n-1.9.1/lib/i18n/backend/simple.rb:77:in `init_translations'
        from /usr/local/bundle/gems/i18n-1.9.1/lib/i18n/backend/simple.rb:62:in `eager_load!'
        from /usr/local/bundle/gems/i18n-1.9.1/lib/i18n.rb:91:in `eager_load!'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/application/finisher.rb:123:in `each'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/application/finisher.rb:123:in `block in <module:Finisher>'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/initializable.rb:32:in `instance_exec'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/initializable.rb:32:in `run'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/initializable.rb:61:in `block in run_initializers'
        from /usr/local/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
        from /usr/local/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        from /usr/local/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
        from /usr/local/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
        from /usr/local/lib/ruby/2.6.0/tsort.rb:347:in `each'
        from /usr/local/lib/ruby/2.6.0/tsort.rb:347:in `call'
        from /usr/local/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
        from /usr/local/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
        from /usr/local/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/initializable.rb:60:in `run_initializers'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/application.rb:363:in `initialize!'
        from /apps/baukis2/config/environment.rb:5:in `<main>'
        from /usr/local/bundle/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /usr/local/bundle/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /usr/local/bundle/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
        from /usr/local/bundle/gems/activesupport-6.0.4.4/lib/active_support/dependencies.rb:324:in `block in require'
        from /usr/local/bundle/gems/activesupport-6.0.4.4/lib/active_support/dependencies.rb:291:in `load_dependency'
        from /usr/local/bundle/gems/activesupport-6.0.4.4/lib/active_support/dependencies.rb:324:in `require'
        from /usr/local/bundle/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:42:in `require_relative'
        from config.ru:3:in `block in <main>'
        from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
        from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
        from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
        from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
        from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
        from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
        from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
        from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:312:in `block in start'
        from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:379:in `handle_profiling'
        from /usr/local/bundle/gems/rack-2.2.3/lib/rack/server.rb:311:in `start'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/commands/server/server_command.rb:39:in `start'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/commands/server/server_command.rb:147:in `block in perform'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/commands/server/server_command.rb:138:in `tap'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/commands/server/server_command.rb:138:in `perform'
        from /usr/local/bundle/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
        from /usr/local/bundle/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
        from /usr/local/bundle/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/command/base.rb:69:in `perform'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/command.rb:46:in `invoke'
        from /usr/local/bundle/gems/railties-6.0.4.4/lib/rails/commands.rb:18:in `<main>'
        from /usr/local/bundle/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /usr/local/bundle/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /apps/baukis2/bin/rails:9:in `<top (required)>'
        from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
        from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
        from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
        from /usr/local/bundle/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
        from /usr/local/bundle/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
        from /usr/local/bundle/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
        from /usr/local/bundle/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
        from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /apps/baukis2/bin/spring:15:in `<top (required)>'
        from bin/rails:3:in `load'
        from bin/rails:3:in `<main>'

一旦は下記のように6系のバージョンを指定しました。

gem "rails-i18n", "~> 6.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant