cancel
Showing results for 
Search instead for 
Did you mean: 

Failed rush build after upgrade to SAP Commerce Cloud 2211.24

stefanweis
Participant
0 Kudos
298

Hello,

I am trying to upgrade from 2211.20 to 2211.24 and while executing ant all I am getting the following error while doing the rush smartedit build.

 

     [echo] Running [rush build] on path /Users/sweis/dev/shop-platform/server/hybris/bin/modules/smartedit/smartedittools
     [exec] The rush.json configuration requests Rush version 5.120.6
     [exec] 
     [exec] Invoking "rush build"
     [exec] ---------------------
     [exec] 
     [exec] Found configuration in /Users/sweis/dev/shop-platform/server/hybris/bin/modules/smartedit/smartedittools/rush.json
     [exec] 
     [exec] 
     [exec] Rush Multi-Project Build Tool 5.120.6 - https://rushjs.io
     [exec] Node.js version is 18.20.2 (LTS)
     [exec] 
     [exec] 
     [exec] Starting "rush build"
     [exec] 
     [exec] Analyzing repo state... DONE (1.07 seconds)
     [exec] 
     [exec] Executing a maximum of 12 simultaneous processes...
     [exec] 
     [exec] ==[ smartedit-build ]=============================================[ 1 of 15 ]==
     [exec] "smartedit-build" did not define any work.
     [exec] 
     [exec] ==[ @smartedit/scripts ]==========================================[ 2 of 15 ]==
     [exec] "@smartedit/scripts" did not define any work.
     [exec] 
     [exec] ==[ @smart/utils ]================================================[ 3 of 15 ]==
     [exec] "@smart/utils" completed successfully in 16.66 seconds.
     [exec] 
     [exec] ==[ smarteditcommons ]============================================[ 4 of 15 ]==
     [exec] "smarteditcommons" completed successfully in 25.40 seconds.
     [exec] 
     [exec] ==[ personalizationcommons ]======================================[ 5 of 15 ]==
     [exec] "personalizationcommons" completed successfully in 11.84 seconds.
     [exec] 
     [exec] ==[ smarteditcontainer ]==========================================[ 6 of 15 ]==
     [exec] "smarteditcontainer" completed successfully in 21.36 seconds.
     [exec] 
     [exec] ==[ cmscommons ]==================================================[ 7 of 15 ]==
     [exec] "cmscommons" completed successfully in 15.13 seconds.
     [exec] 
     [exec] ==[ smartedit ]===================================================[ 8 of 15 ]==
     [exec] "smartedit" completed successfully in 15.96 seconds.
     [exec] 
     [exec] ==[ personalizationsmartedit ]====================================[ 9 of 15 ]==
     [exec] "personalizationsmartedit" completed successfully in 16.19 seconds.
     [exec] 
     [exec] ==[ customsmarteditcontainer ]=================================[ 10 of 15 ]==
     [exec] "customsmarteditcontainer" completed successfully in 14.57 seconds.
     [exec] 
     [exec] ==[ cmssmartedit ]===============================================[ 11 of 15 ]==
     [exec] "cmssmartedit" completed successfully in 17.58 seconds.
     [exec] 
     [exec] ==[ webappinjector ]=============================================[ 12 of 15 ]==
     [exec] "webappinjector" completed successfully in 16.42 seconds.
     [exec] 
     [exec] ==[ personalizationsmarteditcontainer ]==========================[ 13 of 15 ]==
     [exec] "personalizationsmarteditcontainer" completed successfully in 21.80 seconds.
     [exec] 
     [exec] ==[ cmssmarteditcontainer ]======================================[ 14 of 15 ]==
     [exec] "cmssmarteditcontainer" completed successfully in 30.02 seconds.
     [exec] 
     [exec] ==[ smarteditmaster ]============================================[ 15 of 15 ]==
     [exec] Returned error code: 1
     [exec] "smarteditmaster" failed to build.
     [exec] Operations failed.
     [exec] 
     [exec] 
     [exec] 
     [exec] 
     [exec] ==[ NO OP: 2 operations ]======================================================
     [exec] 
     [exec] These operations did not define any work:
     [exec]   smartedit-build
     [exec]   @smartedit/scripts
     [exec] 
     [exec] ==[ SUCCESS: 12 operations ]===================================================
     [exec] 
     [exec] These operations completed successfully:
     [exec]   @smart/utils                         16.66 seconds
     [exec]   cmscommons                           15.13 seconds
     [exec]   smarteditcommons                     25.40 seconds
     [exec]   cmssmartedit                         17.58 seconds
     [exec]   smartedit                            15.96 seconds
     [exec]   cmssmarteditcontainer                30.02 seconds
     [exec]   smarteditcontainer                   21.36 seconds
     [exec]   personalizationcommons               11.84 seconds
     [exec]   personalizationsmartedit             16.19 seconds
     [exec]   personalizationsmarteditcontainer    21.80 seconds
     [exec]   customsmarteditcontainer           14.57 seconds
     [exec]   webappinjector                       16.42 seconds
     [exec] 
     [exec] ==[ FAILURE: 1 operation ]=====================================================
     [exec] 
     [exec] --[ FAILURE: smarteditmaster ]-----------------------[ 1 minute 3.4 seconds ]--
     [exec] 
     [exec] Invoking: npm run build:prod 
     [exec] 
     [exec] > smarteditmaster@0.0.1 build:prod
     [exec] > npm run build-container:prod && npm run build-inner:prod && npm run copy-third-parties
     [exec] 
     [exec] 
     [exec] > smarteditmaster@0.0.1 build-container:prod
     [exec] > npm run build-container-only:prod && npm run copy-to-webroot -- --container
     [exec] 
     [exec] 
     [exec]   ...3676 lines omitted...
     [exec]     at Object.each (/Users/sweis/dev/shop-platform/server/hybris/bin/modules/smartedit/smartedittools/common/temp/node_modules/.pnpm/neo-async@2.6.2/node_modules/neo-async/async.js:2850:39)
     [exec]     at /Users/sweis/dev/shop-platform/server/hybris/bin/modules/smartedit/smartedittools/common/temp/node_modules/.pnpm/webpack@5.90.0_webpack-cli@5.1.4/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:50:15
     [exec]     at _next0 (eval at create (/Users/sweis/dev/shop-platform/server/hybris/bin/modules/smartedit/smartedittools/common/temp/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:49:1)
     [exec]     at eval (eval at create (/Users/sweis/dev/shop-platform/server/hybris/bin/modules/smartedit/smartedittools/common/temp/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:66:1)
     [exec]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
     [exec]  @ ../smartedit-commons/dist/fesm2022/smarteditcommons.mjs
     [exec]  @ ./src/container/container.ts 10:0-665 19:0-39 31:70-95 36:16-45 36:46-74 36:76-108 36:110-126 36:128-157 36:159-182 36:184-210 37:16-43 38:16-52 40:30-47 56:16-41 56:59-91 57:16-39 59:16-29 63:30-51 66:16-34 68:29-51 69:30-51 72:29-44 76:29-47 80:29-44 85:16-37 94:79-109 95:97-130 98:40-52 106:20-43 106:89-99 111:16-38 112:16-38 114:16-45 114:46-74 114:76-92 114:94-126 115:16-43 121:44-56 124:12-48 133:27-37 135:36-66 136:61-91 140:69-81
     [exec]  @ ./src/container/index.ts 35:0-46 37:4-19
     [exec] 
     [exec] webpack 5.90.0 compiled with 94 errors in 58292 ms
     [exec] 
     [exec] 
     [exec] rush build (2 minutes 37.9 seconds)

BUILD FAILED
/Users/sweis/dev/shop-platform/server/hybris/bin/platform/build.xml:13: The following error occurred while executing this line:
/Users/sweis/dev/shop-platform/server/hybris/bin/platform/resources/ant/compiling.xml:95: The following error occurred while executing this line:
/Users/sweis/dev/shop-platform/server/hybris/bin/platform/resources/ant/compiling.xml:136: The following error occurred while executing this line:
/Users/sweis/dev/shop-platform/server/hybris/bin/platform/resources/ant/util.xml:42: The following error occurred while executing this line:
/Users/sweis/dev/shop-platform/server/hybris/bin/platform/resources/ant/util.xml:44: The following error occurred while executing this line:
/Users/sweis/dev/shop-platform/server/hybris/bin/platform/resources/ant/compiling.xml:143: The following error occurred while executing this line:
/Users/sweis/dev/shop-platform/server/hybris/bin/platform/resources/ant/compiling.xml:289: The following error occurred while executing this line:
/Users/sweis/dev/shop-platform/server/hybris/bin/platform/resources/ant/util.xml:142: The following error occurred while executing this line:
/Users/sweis/dev/shop-platform/server/hybris/bin/modules/smartedit/smartedittools/buildcallbacks.xml:199: The following error occurred while executing this line:
/Users/sweis/dev/shop-platform/server/hybris/bin/modules/npm-ancillary/npmancillary/buildcallbacks.xml:544: The following error occurred while executing this line:
/Users/sweis/dev/shop-platform/server/hybris/bin/modules/npm-ancillary/npmancillary/buildcallbacks.xml:142: exec returned: 1

 

Does anyone have an idea what the cause/solution to this might be?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

stefanweis
Participant

I fixed the issue myself, I forgot to update to Angular 17:  Upgrading to Angular 17 

ravi_paluchuriey
Discoverer
0 Kudos

Hi #stefanweis,

Can you please provide how to update angualr17 in Hybris.
ant upgradeAngular17 -DextPath=/absolute/path/to/yoursmartedit -DgitBranch=angular17

what should be this path value /absolute/path/to/yoursmartedit.
If possible can you please provide commands with path and extensions step by step ??

Answers (0)