Masha555 Posted September 14 Share Posted September 14 My project was created in angular. When I deploy to netlify, I get an error Error: Module not found: Error: Can't resolve 'gsap/SplitText' in '/opt/build/repo/src/app/modules/pages/main-page/components/main-page'. I do not know what this error may be related to... I installed gsap using npm from a special package for club members. In the root of the project, I created a .npmrc file with a token, as indicated in the instructions. But I still get the error. In my component I specify as follows: import { gsap } from 'gsap'; import { SplitText } from 'gsap/SplitText'; gsap.registerPlugin(SplitText); And everything works fine locally. Please tell me what this may be related to. Link to comment Share on other sites More sharing options...
GreenSock Posted September 14 Share Posted September 14 I'm not personally familiar with Netlify, but this post may help: https://blog.privjs.com/article/how-to-install-club-greensock-packages-on-netlify And this one: Or: Thanks for being a Club GreenSock member! 💚 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