i'm trying to set up the recipe example and when r...
# community-help
b
i'm trying to set up the recipe example and when running
yarn run indexer:importToTypesense
, I'm getting: `scripts/indexer/index.rb65in `block in <main>': undefined method
filter' for #<Array:0x000055c003f6a090> (NoMethodError)
j
@bnfd The filter method is only available in Ruby 2.6.0. I'd recommend using at least Ruby 2.7 which is what I use
b
Are you using Ubuntu? I am on 18.04 and had to update several stuff
j
No I’m on a Mac, but OS shouldn’t matter for this issue. You’d just need to make sure that you’re using Ruby 2.7 or above
b
yeah i mean i have to install new ruby from rbenv because latest stable from the Ubuntu repo is 2.5.1 . i also had to update node and bundler because latest Ubuntu versions from the repo are not meeting version requirements
j
Ah yeah, I usually use rvm, ubuntu apt repos don't always have the latest versions
b
i will try with rvm but i wouldn't want to install stuff outside of stable repos in a production environment
but yeah this is not related to typesense, just a suggestion to reduce friction for setting up the demo
🙏 1
👍 1
j
The latest stable version of Ruby is actually `3.0.2`: https://www.ruby-lang.org/en/downloads/ So even when software authors (Ruby authors in this case) release stable versions, the Ubuntu folks usually lag behind in adding the latest stable versions of those software, in their own apt repos.
Btw, this article seems to suggest that apt repos have Ruby 2.7 by default in Ubuntu 20.04. So I wonder if it's just Ubuntu 18 that doesn't have an updated Ruby package: https://linuxize.com/post/how-to-install-ruby-on-ubuntu-20-04/
b
maybe it's time to upgrade to 20.04 hehe
😄 1
thanks
👍 1