cloud manager issues with frontend build | Community
Skip to main content
September 15, 2023

cloud manager issues with frontend build

  • September 15, 2023
  • 2 replies
  • 618 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Shashi_Mulugu
Community Advisor
Community Advisor
September 15, 2023

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

kautuk_sahni
Community Manager
Community Manager
September 18, 2023

@surajpatra2525 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