Hi !
I'm a beginner with both pixi.js and vue.js and I can't manage to import pixi.js in my components. I tried different ways :
- Import pixi.js in index.html via the CDN
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.2.2/pixi.min.js"></script>
- Import pixi.js directly in my component (like in the example, it's working perfectly with TweenMax)
import PIXI from 'pixi.js'
import TweenMax from 'gsap'
export default {
name: 'home',
mounted () {
console.log('Mounted home, ready to PIXI')
console.log(PIXI)
}
}
The problem is that in my component, 'PIXI' is always undefined. Do you know if it's possible or if it's just me missing something.
Thank you in advance.