farraday errors installing webpacker with rails 5.1.5 and elasticsearch

$ rails webpacker:install rails aborted! Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {“error”:{“root_cause”:[{“type”:“action_request_validation_exception”,“reason”:“Validation Failed: 1: type is missing;2: type is missing;3: type is missing;”}],“type”:“action_request_validation_exception”,“reason”:“Validation Failed: 1: type is missing;2: type is missing;3: type is missing;”},“status”:400} /home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/base.rb:205:in __raise_transport_error' /home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/base.rb:333:in perform_request’ /home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/http/faraday.rb:24:in perform_request' /home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/client.rb:152:in perform_request’ /home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-api-7.4.0/lib/elasticsearch/api/actions/bulk.rb:88:in `bulk’

Have you installed “yarn”

brew install yarn

It worked for me

I had to download the deb and install that The apt installation had to be uninstalled