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 22.214.171.124.
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.