makilyes Posted December 21, 2021 Share Posted December 21, 2021 Hello, I'm trying to use the drawSVG method, but i'm not able to make it work. I attached a picture of the code, with the imports, and the error. It's a simple animation on an svg line. I'm member, yesterday I got help and I played with the draggable and it worked fine. I followed the installation in the documentation for the import Thanks for your help, Ilyes Link to comment Share on other sites More sharing options...
OSUblake Posted December 21, 2021 Share Posted December 21, 2021 Hi makilyes, It sounds like you are using a framework that doesn't support ES Modules, like next.js. Try importing the UMD files from the dist folder and see if that fixes the problem. import { DrawSVGPlugin } from "gsap/dist/DrawSVGPlugin"; 1 Link to comment Share on other sites More sharing options...
makilyes Posted December 21, 2021 Author Share Posted December 21, 2021 Hi @OSUblake, yes it was as simple as that. Sorry for the inconvenience Thank for the support 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now