1irakli
That means Pixi does not have the atlas loader installed by spine-pixi-v7.
You can check this by listing the parsers with Assets.loader.parsers.
When this happens with Webpack, it usually means that the bundle created by Webpack provides a different Pixi instance to the Spine plugin than the one used in your index file.
You should adjust your Webpack configuration to ensure that any reference to pixi.js points to a single, specific instance. Try adding something like this to your Webpack config:
resolve: {
extensions: [".tsx", ".ts", ".js"],
alias: {
'pixi.js': path.resolve(dirname, 'node_modules/pixi.js')
}
},
This issue likely occurs because, in Pixi v7, the packages were separated for plugin development, while an umbrella package named pixi.js was created to include all Pixi modules.
Our peerDependencies are:
"peerDependencies": {
"@pixi/core": "^7.2.4",
"@pixi/display": "^7.2.4",
"@pixi/graphics": "^7.2.4",
"@pixi/text": "^7.2.4",
"@pixi/assets": "^7.2.4",
"@pixi/mesh": "^7.2.4",
"@pixi/events": "^7.2.4"
}
However, you are installing pixi.js, which bundles all these packages together. As mentioned, this probably confuses Webpack, causing it to return a different instance of Pixi to the addon when it is required.