Wardo
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Wardo
-
-
Thanks. Tried that again - no effect. Saw that in the Forum and tried it earlier.
Any other ideas?
I appreciate your help.
-
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!
Nextjs/Vercel: module-not-found error
in GSAP
Posted
Good news! When I did the initial installation on a different project as a GSAP Club member I had no problems with the Club plugins auth via .npmrc and the dotenv that Vercel uses for environment variables. It worked just fine.
Despite following your directions, I was unable to completely remove/change something (can't figure out what) that kept bringing up the 'module not found' error when I reinstalled in the project I referenced to you initially. So I just created a new repo for that client with the Club auth and moved in the modules, so I'm good now.
Thanks for all your help. I'm very excited about using GSAP to raise the level of my designs!