After installing 'Yarn'

After installing ‘Yarn’, this error during new Rails app creation:

Hi, Paul, what is it going? My name is Paul also, but in Portuguese (Paulo).
Are you using some ruby version managment, such as rbenv?
This issue happned to me using a ruby version 2.7.0 and Rails 2.6.6. Any 2.6.X version is stable with rails 6.X.X
Until now, using rbenv with controlled environment, I have not income in this issue again.

The problem seem to be bootsnap, This might be the solution:

I use RVM with Ruby 2.7 and Rails
To fix the error I had to cd into the ROR app folder and run ‘bundle install’ , install yarn, and install webpacker. I thought just by doing ‘rails new app’ all that would be done automatically.

Bundle install is need to install the dependence of the program on your computer. And if you are a beginner, the 2.5.x series are a much better choice. Rails 2.6 introduce a lot of new idea. And you will not find a lot of documentation on the net, to help you.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs