stephenR

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. stephenR

    Does PIXI work with Vue.js ?

    Thanks all for your answers. I see now that I didn't understand well the context and import scope of Pixi.js. Moreover I won't need all the parts of the library so, importing only some exports (like in React for example) is gonna be cleaner for what I want to do. Thanks again !
  2. stephenR

    Does PIXI work with Vue.js ?

    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.