I am using Spine in my project and everything goes well when I use this.add.spine keyword but I want to use new SpineGameObject and problem is that I cant import SpineGameObject class from ‘phaser/plugins/spine/src/gameobject/SpineGameObject.js’
the address of import is correct, but file says that it does not contain export named with SpineGameObject, while there is export named with SpineGameObject indeed.
I tried to use Phaser.GameObjects.SpineGameObject and I have this error now
‘phaser/plugins/spine/src/gameobject/SpineGameObject.js’; generally
and in my case it was - ‘…/…/lib/phaser/plugins/spine/src/gameobject/SpineGameObject.js’
import { SpineGameObject } from ‘…/…/lib/phaser/plugins/spine/src/gameobject/SpineGameObject.js’
without curly braces, error said that file does not contain default export while with curly braces it’s saying there is no export named with SpineGameObject