Share Posted June 29, 2022 This is my first using GSAP, and I'm stuck in errors. I tried to import `MorphSVGPlugin` in `Next.js` app and `React.js` app and it is not importing it. I am writing the exact code given in GreenSock | Docs | Installation, but it is giving Could not find module in path: `'gsap/MorphSVGPlugin' relative to '/src/App.js'` error in `React.js`, and `Module not found: Can't resolve 'gsap/dist/MorphSVGPlugin'` error in `Next.js` CodeSandbox URL: xenodochial-haze-nxelbo - CodeSandbox Link to comment Share on other sites More sharing options...
Share Posted June 29, 2022 Hi @Dibas Welcome to the forum! Have you also read the comments that it's giving you in the installation guide? It is stating that MorphSVG is an Club GreenSock perk (eg you'll need an license to use it), but you can freely use the plugins on places like Codepen, Codesandbox (and even locally!), if you follow the instructions below on how to use gsap-trials https://greensock.com/docs/v3/Installation?checked=core,morphSVG#trial Also I've forked your code sandbox and loaded the necessary files. https://codesandbox.io/s/delicate-dust-w57j14?file=/package.json 1 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