Working on a Rails app. Coworker pushed new commits to master with some new gems installed. Then I pulled the master branch to the local branch where I work on, the app breaks and displays the error on the title.
I use Ubuntu, the rest of the team use Macs.
Any ideas?
Already updated Node.js on my terminal to 10.x the current latest. But the error still display the Node v4.9.1
message.
Ref: https://github.com/ai/autoprefixer-rails/issues/137
you can replace therubyracer by mini_racer in Gemfile
just comment
#gem 'therubyracer', platforms: :ruby
and add
gem 'mini_racer', platforms: :ruby
then simply run the command bundle install
it worked in my case
For future searchers, we on our team can only duplicate this error on Ubuntu environment.(Tried it on iOS and Ubuntu 16.04 only)
Already tried installing the latest Node.js versions, to no avail.
There is a link in my question that talks about how this is happening and how to fix it.
So the solution was by installing the mini_racer
gem to your rails app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With