Encountering an error in the built-in SimpleBox2D in openfl while running a build task?

Encountering an error in the built-in SimpleBox2D in openfl while running a build task?

02

[{
“resource”: “/c:/HaxeToolkit/haxe/lib/box2d/1,2,3/box2D/collision/B2AABB.hx”,
“owner”: “haxe”,
“severity”: 4,
“message”: “(WDeprecated) js is deprecated, use js.Syntax.code instead”,
“source”: “tasks”,
“startLineNumber”: 76,
“startColumn”: 21,
“endLineNumber”: 76,
“endColumn”: 37
}]

Is it because ‘box2d’ hasn’t been updated for a long time?

Grab the git version and give it a go. In my testing, those deprecation issues have been sorted out (probably thanks to @joshtynjala’s work):

haxelib git box2d https://github.com/openfl/box2d.git

Additionally, it’s worth mentioning that those appear to be warnings and not errors. Errors prevent compilation from completing successfully. Warnings do not. Warnings can often be safely ignored.

@Bink

I just tried it, it didn’t work at all. It’s still the same warning

@joshtynjala

Yes, it’s a warning. You replied that it can be ignored ..