Skip to content

bin/vite dev error in Rails 5.1 (<< wrong number of arguments) #69

Answered by ElMassimo
GabrielMahan asked this question in Q&A
Discussion options

You must be logged in to vote

The error is caused by how activesupport monkeypatches Array's append method–in rails 5.1.6.2 the << method is aliased as append overriding Ruby stdlib method which is an alias for push.

As a result, it can only receive a single argument, instead of a variable number of arguments.


Released vite_ruby, '1.2.7' which uses push instead of append to avoid this incompatibility in rails 5.1.6.2.

You can upgrade by running bundle update vite_ruby.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ElMassimo
Comment options

Comment options

You must be logged in to vote
1 reply
@GabrielMahan
Comment options

Answer selected by GabrielMahan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants