I upgraded to a Premium account to use Club Plugins. They installed locally and function correctly, but when I build with Vercel I keep getting this error:
Module not found: Can't resolve 'gsap/MorphSVGPlugin'
https://nextjs.org/docs/messages/module-not-found
In my .tsx file, I am importing and registering
import { MorphSVGPlugin } from "gsap/MorphSVGPlugin";
if (typeof window !== "undefined") {
gsap.registerPlugin(MorphSVGPlugin, useGSAP);
}
and my .npmrc file is in place:
always-auth=true
@gsap:registry=https://npm.greensock.com
//npm.greensock.com/:_authToken=${GSAP_TOKEN}
I also added GSAP_TOKEN to my Vercel Environment Variables.
I have gone through the Forum and tried any appropriate fix, but I'm still at a loss. What am I missing?!
Grateful for any assistance. Thanks!