Share Posted June 21, 2022 Using latest version of NextJS, importing and registering plugins like ScrollTrigger and ScrollToPlugin works fine but others as tested so far like DrawSVGPlugin, InertiaPlugin and Draggable renders an error Module not found: Can't resolve 'gsap/dist/DrawSVGPlugin'. I'm importing the umd as suggested like so: import { DrawSVGPlugin } from 'gsap/dist/DrawSVGPlugin' gsap.registerPlugin(DrawSVGPlugin) Link to comment Share on other sites More sharing options...
Solution Solution Share Posted June 21, 2022 Do you have the private NPM module installed with the bonus files? 2 Link to comment Share on other sites More sharing options...
Share Posted June 21, 2022 Hey @chacrasoftware I hope you could solved it, but just in case, I leave here a codesandbox for you! 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