I have export of js , which is part of node_modules/ui-foundation-star
I used below statement in main.ts to import specific js function
import {scopecomponent} from '@ui-foundation-star/scope'
scopecomponent('project-name');
This works fine in my local. but on gitlab pipeline above import statement looks for node_modules and at relative path below /webpack etc and says could not find it.
Question: Is the way i am importing is correct? if so, why it is not working in gitlab but working in local aem.