Error on ruby upgrade to 3.1.2 from 3.0.2

440 Views Asked by At

I am trying to upgrade my app Ruby version to 3.1.2 from 3.0.2 but it shows this error visit_Psych_Nodes_Alias': Unknown alias: default (Psych::BadAlias). Could someone guide me how to solve this error. I tried gem rdoc --all and bundle update. Also I tried adding the psych gem with version <4 but it leads to other error.

1

There are 1 best solutions below

0
Octavian Babus On

Check which gem throws the error and upgrade it to the latest version.

Ruby 3.1 uses Psych 4 while the 3.0 uses Psych 3.

Latest version of Bootsnap works fine with Ruby 3.1.2