Jump to content
Search Community

Flip plugin error

forge451@gmail.com test
Moderator Tag

Recommended Posts

I am getting an error from the Flip.min.js file before I even register the plugin.

<script src="../js/gsap/minified/gsap.min.js"></script>
<script src="../js/gsap/minified/Flip.min.js"></script>

And here's what I get in the console...

Flip.min.js:10 Uncaught TypeError: Cannot read properties of null (reading 'appendChild')
    at o (Flip.min.js:10)
    at Function.register (Flip.min.js:10)
    at _createPlugin (gsap.min.js:10)
    at gsap.min.js:10
    at Array.forEach (<anonymous>)
    at Object.registerPlugin (gsap.min.js:10)
    at Flip.min.js:10
    at Flip.min.js:10

Link to comment
Share on other sites

I'd love to, but even using codepen starts too far into the process. 


This is my entire code so far.

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GSAP Flip Plugin</title>

    <script src="../js/gsap/minified/gsap.min.js"></script>
    <script src="../js/gsap/minified/Flip.min.js"></script>

I just downloaded the most recent version of the GSAP zip yesterday (I'm a ShockinglyGreen member) and was starting to try the FLIP plugin for the first time (using the first codepen in the docs as an example), but got the previously listed error, even with only this as my code.

gsap.version says 3.8.0

Side note:

I tried using the UMD versions of both files, and I tried with the CDN version of the core code and both minified and UMD versions of the Flip file.

I also tried it through a local web server and just local files, just for the heck of it.



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...