ecoin
January 9, 2022, 8:44pm
1
These are the packages I’m using, and need to upgrade to the latest stable release of Babylon:
"@babylonjs/core": "^4.2.0",
"@babylonjs/gui": "^4.2.0",
"@babylonjs/inspector": "^4.2.0",
"@babylonjs/loaders": "^4.2.0",
"@babylonjs/materials": "^4.2.0",
How should I run the command yarn add @babylonjs/core@<version?>
to upgrade?
Is it 5.0.0-beta.2
?
labris
January 10, 2022, 12:41am
2
5.0.0-beta.2 seems to be the latest release - Releases · BabylonJS/Babylon.js · GitHub
I think you can update all your dependencies like
"@babylonjs/core": "^5.0.0-beta.2"
and then yarn install
2 Likes
ecoin
January 10, 2022, 1:40am
3
Thanks, I thought so.
P.S. I do not recommend yarn install
for upgrading large projects, because it might update other packages in your package.json list, leading to bugs sometimes. For upgrades, better to explicitly list the packages.