bin/vite dev error in Rails 5.1 (<< wrong number of arguments) #69
-
Hope y'all will excuse my ignorance of the project, but I thought I'd try out vite on an existing rails project, and I followed the steps, but when I got to
The other bin commands like
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Might be related with Ruby 2.5—from the error it seems like I'm running tests in 2.5 but perhaps the command is always being passed some arguments. I'll take a look tomorrow, the fix should be straightforward. |
Beta Was this translation helpful? Give feedback.
-
The error is caused by how As a result, it can only receive a single argument, instead of a variable number of arguments. Released You can upgrade by running |
Beta Was this translation helpful? Give feedback.
The error is caused by how
activesupport
monkeypatchesArray
'sappend
method–inrails 5.1.6.2
the<<
method is aliased asappend
overriding Ruby stdlib method which is an alias forpush
.As a result, it can only receive a single argument, instead of a variable number of arguments.
Released
vite_ruby, '1.2.7'
which usespush
instead ofappend
to avoid this incompatibility inrails 5.1.6.2
.You can upgrade by running
bundle update vite_ruby
.