Jump to content
Search Community

Uncaught ReferenceError: PixiPlugin is not defined

beaukim test
Moderator Tag

Recommended Posts

I've used pixi plugin an put 

gsap.registerPlugin(PixiPlugin);

on top of js file. and it keeps telling that plugin is not defined.

How should I do?

 

        <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>
        <script src='https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.5.5/pixi.min.js'></script>
        <script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.2/TweenMax.min.js'></script>
        <script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.2/plugins/PixiPlugin.min.js'></script>
        <script src="./script.js"></script>

 

 

Link to comment
Share on other sites

Hello beaukim

 

gsap.registerPlugin is only available since GSAP3 if I am not mistaken. While you are loading the latest version of GSAP (3.9.1), you are loading a very old version of the PixiPlugin (and also an old version of GSAP, i.e. TweenMax) which you probably should avoid.

 

Does this work better for you?

 

<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.5.5/pixi.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/PixiPlugin.min.js"></script>
<script src="./script.js"></script>

 

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...