Closed voglervoice closed 2 years ago
I managed to use pixi-projection by importing the classes directly from the .es file :
import * as PIXI from 'pixi.js';
import { Sprite2s } from '../thirdparty/pixi-projection.es';
does import { Sprite2s } from 'pixi-projection'
work ?
Yes! I should have done that directly. So it's here if someone is having the same issue ;) Thanks
That's usual different between legacy UMD
and new es6 module architecture. Previously it was library.module.Class
, here its import { Class } from 'library-module'
Hello! Via npm, I have installed :
I am trying to import the plugin in my files (I have no issues with PIXI alone) :
But I got this error : export 'projection' (imported as 'PIXI') was not found in 'pixi.js' for
new PIXI.projection.Sprite2s
I tried to do
and I tried
in my webpack config but I am still getting the same error.
What am I missing ? Thanks a lot !