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.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @sreenu539,
Try clearing node_module and check, it should refetch and resolve the paths to imports.
Hope thats helps!
Regards,
Santosh
Hi @sreenu539,
Try clearing node_module and check, it should refetch and resolve the paths to imports.
Hope thats helps!
Regards,
Santosh