Expand my Community achievements bar.

cloud manager issues with frontend build

Avatar

Level 5

Hi Team -

 

has anyone seen issues with frontend app build with cloud manager. our application has a jest file for module mapper of aliases. In cloud manager those aliases are not resolved but resolved in mac in local. the module mapper looks like below -

 

Could not locate module @utilities-root/Constants mapped as:
/build_root/build/test/frontend/meijer-ui/src/main/content/jcr_root/apps/test/utilities$1.

{
"moduleNameMapper": {
 "/^@utilities-root(.*)$/": "/build_root/build/test/frontend/meijer-ui/src/main/content/jcr_root/apps/test/utilities$1"
"resolver": undefined

so it can identify the correct modulemapper from the list. but never resolves the $1.

 

Any input is appreciated.

2 Replies

Avatar

Community Advisor

@sspatra25 are you just using MVN clean install or directly running Npm in your Mac local?

Avatar

Administrator

@sspatra25 Did you find the suggestion from Shashi helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni