Open adamarutyunov opened 1 year ago
Can you create a minimum reproduction so that we can debug more easily? Functionally this works, as you can see the example here.
Make sure you don't have multiple copies of @pixi/core
in your lock file (this can happen if you've upgraded) and could cause this behavior where the parser is getting installed in the wrong place.
I had encountered same issue but solved it by adding following code manually
import { extensions } from 'pixi.js'
import { soundAsset } from '@pixi/sound'
extensions.add(soundAsset)
Nuxt 2.15.3 + webpack 4.47.0
Pixi version: 7.2.4 @pixi/sound version: 5.2.1
I tried to use @pixi/sound with new Pixi.Assets loading system like this:
I successfully load images this way, but in this example I get this error:
Seems like LoaderParser for sound files does not add to Pixi extension system. I tried to add the extensions manually:
But I get this error that I cannot even explain:
Finally I gave up and used old preloading system wrapper in promise, like this:
But eventually I'd like to revert it back to new Assets system. Where do I do something wrong?
Also I've tried to revert to old versions of pixi.js and @pixi/sound but I kept getting same errors.