Jump to content
Search Community

Build failure on netlify.com

Masha555 test
Moderator Tag

Recommended Posts

 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...