-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
"can't modify frozen Array" error during generation #3060
Comments
Downgrading |
I am experiencing the same issue; rails_admin ruby 2.5.1
Traceback
Traceback (most recent call last):
32: from bin/rails:4:in `'
31: from bin/rails:4:in `require'
30: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands.rb:18:in `'
29: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/command.rb:46:in `invoke'
28: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/command/base.rb:65:in `perform'
27: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
26: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
25: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
24: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands/generate/generate_command.rb:21:in `perform'
23: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/command/actions.rb:18:in `require_application_and_environment!'
22: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/application.rb:337:in `require_environment!'
21: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
20: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
19: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
18: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
17: from /Users/admin/spark-io/config/environment.rb:3:in `'
16: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/application.rb:361:in `initialize!'
15: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/initializable.rb:60:in `run_initializers'
14: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
13: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
12: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
11: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:347:in `call'
10: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:347:in `each'
9: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
8: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
7: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
6: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
5: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
4: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `run'
3: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `instance_exec'
2: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/webpacker-3.5.5/lib/webpacker/railtie.rb:51:in `block in '
1: from /Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/stack.rb:76:in `insert'
/Users/admin/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/actionpack-5.2.1/lib/action_dispatch/middleware/stack.rb:76:in `insert': can't modify frozen Array (FrozenError)
|
Also on my side: rails 5.2.1 the problem was with serviceworker-rails, downgrading rails_admin to 1.4.0 solved the issue, but I now can't upgrade rails_admin until a solution is found. |
That problem still happens in:
To solve it I ran: and solve it! \o/ |
This is a pretty stock rails 5.2 app with Ruby 2.4.4 and rails_admin 1.4.1.
Downgrading to rails_admin 1.3 resolves the issue.
9/5/2018: It seems that you only need to downgrade to 1.4.0.
Full error message:
Gemfile:
The text was updated successfully, but these errors were encountered: