Exported with latest stable version of spine to target 4.1, runtime is also 4.1. I tried to load two spine export but both failed at different call stacks. However, it can load the JSON exports correctly. Only the load binary function will fail.
Here is the log when load fail:
Uncaught RangeError: offset is outside the bounds of the DataView
readUnsignedByte SkeletonBinary.ts:1114
readString SkeletonBinary.ts:1168
readSkeletonData SkeletonBinary.ts:225
getSkeletonData SpinePlugin.ts:245
createSkeleton SpinePlugin.ts:254
SpineGameObject SpineGameObject.ts:219
addSpineGameObject SpinePlugin.ts:127
Another error from another export:
Uncaught Error: Physics constraint data name must not be null.
readSkeletonData SkeletonBinary.ts:226
getSkeletonData SpinePlugin.ts:245
createSkeleton SpinePlugin.ts:254
SpineGameObject SpineGameObject.ts:219
addSpineGameObject SpinePlugin.ts:127
The spine project I tested is just a fresh project without even any rigging.
package.json :
"@esotericsoftware/spine-canvas": "4.1.51",
"@esotericsoftware/spine-core": "4.1.51",
"@esotericsoftware/spine-phaser": "4.1.51",
"@esotericsoftware/spine-webgl": "4.1.51",
"phaser": "3.60.0",
Sample exported file in case you need to test it: