Hi guys,
Im trying to import the MorphSVG plugin in a Nuxt project. I've seen some threads here that there has been some confusion about how to import them and I just want to know what you guys recommend.
In the image below I've imported gsap as usual and put the morphSVG plugin and the registration inside an if to not run on the server. Inside the mounted hook Im trying to console log the morphSVG plugin, but get an error in the console (2nd image).
Anybody know what Im doing wrong?
@GreenSock the “/“ part was a typo while transferring the code to the post.
Btw, i have used the UDM approach and had the same issues. Right now i am importing the library in each component i want to use it..
Your documentation really shines, but it would be great to have a section where you guide people using your library in different well known JS frameworks (VueCLI, NuxtJS, NextJS, etc.)