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: https://github.com/Shopify/bootsnap/issues/134
I use RVM with Ruby 2.7 and Rails 18.104.22.168.
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.