After updating I get "Class<starling.display.Mesh> has no field createDefaultStyle"

I’ve just did a haxelib update and when I recompile my project I get:-

Error:(2004, 37) Class<starling.display.Mesh> has no field createDefaultStyle (Suggestions: set_defaultStyle, get_defaultStyle)

When I do a haxelib list, I get:-

actuate: [1.8.9]
as3hx: [1.0.6]
box2d: [1.2.3]
haxelib: [3.3.0]
hxcpp: [4.0.4]
layout: [1.2.1]
lime-samples: [7.0.0]
lime: 7.1.1 [7.2.1]
openfl-samples: 8.4.0 [8.7.0]
openfl: 8.6.4 [8.8.0]
starling: 2.4.1 [2.4.2]

I’m seeing 2 version number for some projects: what does that mean?

Is there a way to roll back to the previous versions of the libraries?

You can select any installed version with haxelib set libname 1.2.3 (if needed, you can install it with haxelib install libname 1.2.3).

It means that you have both (or many) versions installed. The currently selected version is the one wrapped in square brackets. (So, starling 2.4.2 is current and being used by your builds.) In the typical use case (yours), the selected version can be changed as Klabz suggests.

Full docs for haxelib are here: Using Haxelib - Haxelib Documentation