I've installed pixi-particles via NPM.
I imported it to my project like that:
import * as PIXIParticles from 'pixi-particles';
Then I created my emitter like that:
let emitter = new PIXI.particles.Emitter(...)
However I get an error console: "Uncaught TypeError: PIXI.particles.Emitter is not a constructor"
It's like I can't use the lib and I don't know why ? I'm a bit new with NPM things and I struggle with this problem.
Hey,
I've installed pixi-particles via NPM. I imported it to my project like that: import * as PIXIParticles from 'pixi-particles';
Then I created my emitter like that: let emitter = new PIXI.particles.Emitter(...)
However I get an error console: "Uncaught TypeError: PIXI.particles.Emitter is not a constructor" It's like I can't use the lib and I don't know why ? I'm a bit new with NPM things and I struggle with this problem.
I'm using pixi.js 4.8.7
Thanks in advance for your help