Hi,
Recently we tried to deploy changes to dev pipeline but build fails for frontend module with below error:
ERROR in /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/@types/gensync/index.d.ts
06:30:05,974 [Exec Stream Pumper] [INFO] [tsl] ERROR in /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/@types/gensync/index.d.ts(45,34)
error:
11:29:56,079 [main] [INFO] Reactor Summary for samsclub-aem-assets 1.0-SNAPSHOT:
11:29:56,079 [main] [INFO]
11:29:56,079 [main] [INFO] samsclub-aem-assets ................................ SUCCESS [ 2.786 s]
11:29:56,079 [main] [INFO] Sam's Club - Core .................................. SUCCESS [01:06 min]
11:29:56,080 [main] [INFO] samsclub-aem-assets.ui.frontend - UI Frontend ...... FAILURE [ 47.599 s]
11:29:56,080 [main] [INFO] Sam's Club - Repository Structure Package .......... SKIPPED
11:29:56,080 [main] [INFO] Sam's Club - UI apps ............................... SKIPPED
11:29:56,080 [main] [INFO] Sam's Club - UI content ............................ SKIPPED
11:29:56,080 [main] [INFO] Sam's Club - All ................................... SKIPPED
11:29:56,080 [main] [INFO] Sam's Club - Dispatcher ............................ SKIPPED
11:29:56,080 [main] [INFO] ------------------------------------------------------------------------
11:29:56,080 [main] [INFO] BUILD FAILURE
11:29:56,080 [main] [INFO] ------------------------------------------------------------------------
11:29:56,080 [main] [INFO] Total time: 02:03 min
11:29:56,080 [main] [INFO] Finished at: 2025-02-13T11:29:56Z
11:29:56,080 [main] [INFO] ------------------------------------------------------------------------
11:29:56,082 [main] [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.0:npm (npm run prod) on project samsclub-aem-assets.ui.frontend: Failed to run task: 'npm run prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) -> [Help 1]
Not able to figure out why ui.frontend is failing bcz we are not working in that folder. Tried changing node and npm version in pom but it's failing locally.
Please help us resolve this since this is a blocker.
Thank you.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@Keerthana_H_N We resolved this error yesterday for us. So basically what you have to do is following :
Let me know how this goes.
yes
Hi @Keerthana_H_N ,
Looks like it has something to do with compiler options in tsconfig.json file
Can you re-check if node_modules excluded like below in the file (tsconfig.json) -
tsconfig.json
@PRATHYUSHA_VP ,
Not working. Build is failing with same error.
Views
Replies
Total Likes
Can you share the complete logs? there must be more logs above this error which can have the info of the failure.
also try running the npm run prod command directly and see if any error is coming while executing that command. if any error comes up using this command please share the error.
Hi @chaudharynick,
I have shared the entire ui.frontend log.
11:29:08,483 [main] [INFO] -------< com.samsclub.aemassets:samsclub-aem-assets.ui.frontend >-------
11:29:08,484 [main] [INFO] Building samsclub-aem-assets.ui.frontend - UI Frontend 1.0-SNAPSHOT [3/8]
11:29:08,485 [main] [INFO] from ui.frontend/pom.xml
11:29:08,485 [main] [INFO] --------------------------------[ pom ]---------------------------------
11:29:08,567 [main] [INFO]
11:29:08,567 [main] [INFO] --- jacoco:0.8.12:prepare-agent (default-cli) @ samsclub-aem-assets.ui.frontend ---
11:29:08,588 [main] [INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.8.12/org.jacoco.agent-0.8.12-runtime.jar=destfile=/build_root/build/samsclubcloudservices-p16404/ui.frontend/target/jacoco.exec
11:29:08,593 [main] [INFO]
11:29:08,593 [main] [INFO] --- enforcer:1.4.1:enforce (enforce-maven) @ samsclub-aem-assets.ui.frontend ---
11:29:08,599 [main] [INFO]
11:29:08,602 [main] [INFO] --- frontend:1.11.0:install-node-and-npm (install node and npm) @ samsclub-aem-assets.ui.frontend ---
11:29:08,731 [main] [INFO] Installing node version v10.13.0
11:29:08,733 [main] [INFO] Downloading https://nodejs.org/dist/v10.13.0/node-v10.13.0-linux-x64.tar.gz to /root/.m2/repository/com/github/eirslett/node/10.13.0/node-10.13.0-linux-x64.tar.gz
11:29:08,734 [main] [INFO] No proxies configured
11:29:08,735 [main] [INFO] No proxy was configured, downloading directly
11:29:09,217 [main] [INFO] Unpacking /root/.m2/repository/com/github/eirslett/node/10.13.0/node-10.13.0-linux-x64.tar.gz into /build_root/build/samsclubcloudservices-p16404/ui.frontend/node/tmp
11:29:10,583 [main] [INFO] Copying node binary from /build_root/build/samsclubcloudservices-p16404/ui.frontend/node/tmp/node-v10.13.0-linux-x64/bin/node to /build_root/build/samsclubcloudservices-p16404/ui.frontend/node/node
11:29:10,747 [main] [INFO] Installed node locally.
11:29:10,750 [main] [INFO] Installing npm version 6.9.0
11:29:10,750 [main] [INFO] Downloading https://registry.npmjs.org/npm/-/npm-6.9.0.tgz to /root/.m2/repository/com/github/eirslett/npm/6.9.0/npm-6.9.0.tar.gz
11:29:10,750 [main] [INFO] No proxies configured
11:29:10,750 [main] [INFO] No proxy was configured, downloading directly
11:29:10,979 [main] [INFO] Unpacking /root/.m2/repository/com/github/eirslett/npm/6.9.0/npm-6.9.0.tar.gz into /build_root/build/samsclubcloudservices-p16404/ui.frontend/node/node_modules
11:29:13,445 [main] [INFO] Installed npm locally.
11:29:13,447 [main] [INFO]
11:29:13,447 [main] [INFO] --- frontend:1.11.0:npm (npm install) @ samsclub-aem-assets.ui.frontend ---
11:29:13,457 [main] [INFO] Running 'npm install' in /build_root/build/samsclubcloudservices-p16404/ui.frontend
11:29:14,515 [Exec Stream Pumper] [INFO] npm WARN deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
11:29:14,582 [Exec Stream Pumper] [INFO] npm WARN deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
11:29:14,850 [Exec Stream Pumper] [INFO] npm WARN deprecated eslint-loader@3.0.4: This loader has been deprecated. Please use eslint-webpack-plugin
11:29:14,891 [Exec Stream Pumper] [INFO] npm WARN deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported
11:29:14,911 [Exec Stream Pumper] [INFO] npm WARN deprecated node-sass@4.14.1: Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead.
11:29:15,067 [Exec Stream Pumper] [INFO] npm WARN deprecated eslint@6.8.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
11:29:15,700 [Exec Stream Pumper] [INFO] npm WARN deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported
11:29:17,677 [Exec Stream Pumper] [INFO] npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
11:29:17,775 [Exec Stream Pumper] [INFO] npm WARN deprecated npmlog@4.1.2: This package is no longer supported.
11:29:17,841 [Exec Stream Pumper] [INFO] npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
11:29:18,708 [Exec Stream Pumper] [INFO] npm WARN deprecated glob@5.0.15: Glob versions prior to v9 are no longer supported
11:29:19,098 [Exec Stream Pumper] [INFO] npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
11:29:19,398 [Exec Stream Pumper] [INFO] npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
11:29:19,882 [Exec Stream Pumper] [INFO] npm WARN deprecated move-concurrently@1.0.1: This package is no longer supported.
11:29:19,895 [Exec Stream Pumper] [INFO] npm WARN deprecated figgy-pudding@3.5.2: This module is no longer supported.
11:29:20,266 [Exec Stream Pumper] [INFO] npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
11:29:21,021 [Exec Stream Pumper] [INFO] npm WARN deprecated gauge@2.7.4: This package is no longer supported.
11:29:21,036 [Exec Stream Pumper] [INFO] npm WARN deprecated are-we-there-yet@1.1.7: This package is no longer supported.
11:29:21,174 [Exec Stream Pumper] [INFO] npm WARN deprecated har-validator@5.1.5: this library is no longer supported
11:29:21,253 [Exec Stream Pumper] [INFO] npm WARN deprecated osenv@0.1.5: This package is no longer supported.
11:29:21,268 [Exec Stream Pumper] [INFO] npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
11:29:21,300 [Exec Stream Pumper] [INFO] npm WARN deprecated fstream@1.0.12: This package is no longer supported.
11:29:22,308 [Exec Stream Pumper] [INFO] npm WARN deprecated fsevents@1.2.13: Upgrade to fsevents v2 to mitigate potential security issues
11:29:23,601 [Exec Stream Pumper] [INFO] npm WARN deprecated fs-write-stream-atomic@1.0.10: This package is no longer supported.
11:29:23,604 [Exec Stream Pumper] [INFO] npm WARN deprecated copy-concurrently@1.0.5: This package is no longer supported.
11:29:23,758 [Exec Stream Pumper] [INFO] npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
11:29:24,425 [Exec Stream Pumper] [INFO] npm WARN deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported
11:29:24,565 [Exec Stream Pumper] [INFO] npm WARN deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
11:29:24,814 [Exec Stream Pumper] [INFO] npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
11:29:25,644 [Exec Stream Pumper] [INFO] npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
11:29:26,600 [Exec Stream Pumper] [INFO] npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
11:29:26,602 [Exec Stream Pumper] [INFO] npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
11:29:26,615 [Exec Stream Pumper] [INFO] npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
11:29:26,945 [Exec Stream Pumper] [INFO] npm WARN deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
11:29:26,945 [Exec Stream Pumper] [INFO] npm WARN deprecated
11:29:26,945 [Exec Stream Pumper] [INFO] npm WARN deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
11:29:46,434 [Exec Stream Pumper] [INFO]
11:29:46,434 [Exec Stream Pumper] [INFO] > @parcel/watcher@2.5.1 install /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/@parcel/watcher
11:29:46,434 [Exec Stream Pumper] [INFO] > node scripts/build-from-source.js
11:29:46,434 [Exec Stream Pumper] [INFO]
11:29:46,596 [Exec Stream Pumper] [INFO]
11:29:46,596 [Exec Stream Pumper] [INFO] > node-sass@4.14.1 install /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/node-sass
11:29:46,596 [Exec Stream Pumper] [INFO] > node scripts/install.js
11:29:46,596 [Exec Stream Pumper] [INFO]
11:29:47,091 [Exec Stream Pumper] [INFO] Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux-x64-64_binding.node
11:29:47,199 [Exec Stream Pumper] [INFO] Download complete
11:29:47,205 [Exec Stream Pumper] [INFO] Binary saved to /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/node-sass/vendor/linux-x64-64/binding.node
11:29:47,235 [Exec Stream Pumper] [INFO] Caching binary to /root/.npm/node-sass/4.14.1/linux-x64-64_binding.node
11:29:47,419 [Exec Stream Pumper] [INFO]
11:29:47,419 [Exec Stream Pumper] [INFO] > node-sass@4.14.1 postinstall /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/node-sass
11:29:47,419 [Exec Stream Pumper] [INFO] > node scripts/build.js
11:29:47,419 [Exec Stream Pumper] [INFO]
11:29:47,585 [Exec Stream Pumper] [INFO] Binary found at /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/node-sass/vendor/linux-x64-64/binding.node
11:29:47,587 [Exec Stream Pumper] [INFO] Testing binary
11:29:47,695 [Exec Stream Pumper] [INFO] Binary is fine
11:29:48,491 [Exec Stream Pumper] [INFO] npm notice created a lockfile as package-lock.json. You should commit this file.
11:29:48,496 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-darwin-x64@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-darwin-x64):
11:29:48,497 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-darwin-x64@2.5.1: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
11:29:48,497 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-darwin-arm64@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-darwin-arm64):
11:29:48,497 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-darwin-arm64@2.5.1: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
11:29:48,498 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-win32-arm64@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-win32-arm64):
11:29:48,498 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-win32-arm64@2.5.1: wanted {"os":"win32","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
11:29:48,498 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-win32-x64@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-win32-x64):
11:29:48,498 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-win32-x64@2.5.1: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
11:29:48,498 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-win32-ia32@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-win32-ia32):
11:29:48,498 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-win32-ia32@2.5.1: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"x64"})
11:29:48,499 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-linux-arm-glibc@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-linux-arm-glibc):
11:29:48,499 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-linux-arm-glibc@2.5.1: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
11:29:48,499 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-linux-arm64-glibc@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-linux-arm64-glibc):
11:29:48,499 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-linux-arm64-glibc@2.5.1: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
11:29:48,499 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-linux-arm-musl@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-linux-arm-musl):
11:29:48,499 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-linux-arm-musl@2.5.1: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
11:29:48,499 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-android-arm64@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-android-arm64):
11:29:48,499 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-android-arm64@2.5.1: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
11:29:48,500 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-linux-arm64-musl@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-linux-arm64-musl):
11:29:48,500 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-linux-arm64-musl@2.5.1: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
11:29:48,501 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @parcel/watcher-freebsd-x64@2.5.1 (node_modules/@parcel/watcher/node_modules/@parcel/watcher-freebsd-x64):
11:29:48,501 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @parcel/watcher-freebsd-x64@2.5.1: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"linux","arch":"x64"})
11:29:48,501 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
11:29:48,501 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
11:29:48,501 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/watchpack-chokidar2/node_modules/chokidar/node_modules/fsevents):
11:29:48,501 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
11:29:48,501 [Exec Stream Pumper] [INFO] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
11:29:48,501 [Exec Stream Pumper] [INFO] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
11:29:48,502 [Exec Stream Pumper] [INFO]
11:29:48,515 [Exec Stream Pumper] [INFO] added 1230 packages from 700 contributors and audited 1246 packages in 34.501s
11:29:48,517 [Exec Stream Pumper] [INFO] found 46 vulnerabilities (2 low, 19 moderate, 24 high, 1 critical)
11:29:48,517 [Exec Stream Pumper] [INFO] run `npm audit fix` to fix them, or `npm audit` for details
11:29:48,545 [main] [INFO]
11:29:48,545 [main] [INFO] --- frontend:1.11.0:npm (npm run prod) @ samsclub-aem-assets.ui.frontend ---
11:29:48,549 [main] [INFO] Running 'npm run prod' in /build_root/build/samsclubcloudservices-p16404/ui.frontend
11:29:48,922 [Exec Stream Pumper] [INFO]
11:29:48,922 [Exec Stream Pumper] [INFO] > aem-maven-archetype@1.0.0 prod /build_root/build/samsclubcloudservices-p16404/ui.frontend
11:29:48,922 [Exec Stream Pumper] [INFO] > webpack -p --config ./webpack.prod.js && clientlib --verbose
11:29:48,922 [Exec Stream Pumper] [INFO]
11:29:55,995 [Exec Stream Pumper] [INFO] Hash: 81b628f7182b1d488c71
11:29:55,995 [Exec Stream Pumper] [INFO] Version: webpack 4.47.0
11:29:55,995 [Exec Stream Pumper] [INFO] Time: 5658ms
11:29:55,995 [Exec Stream Pumper] [INFO] Built at: 02/13/2025 11:29:55 AM
11:29:55,995 [Exec Stream Pumper] [INFO] 2 assets
11:29:55,995 [Exec Stream Pumper] [INFO] Entrypoint site = clientlib-site/site.css clientlib-site/site.js
11:29:55,995 [Exec Stream Pumper] [INFO]
11:29:55,995 [Exec Stream Pumper] [INFO] WARNING in ./src/main/webpack/site/main.ts
11:29:55,995 [Exec Stream Pumper] [INFO] Module Warning (from (webpack)-import-glob-loader/index.js):
11:29:55,995 [Exec Stream Pumper] [INFO] (Emitted value instead of an instance of Error) Empty results for "import "./**/*.js""
11:29:55,995 [Exec Stream Pumper] [INFO] NonErrorEmittedError: (Emitted value instead of an instance of Error) Empty results for "import "./**/*.js""
11:29:55,995 [Exec Stream Pumper] [INFO] at Object.emitWarning (/build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/webpack/lib/NormalModule.js:160:16)
11:29:55,995 [Exec Stream Pumper] [INFO] at replacer (/build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/webpack-import-glob-loader/index.js:85:12)
11:29:55,996 [Exec Stream Pumper] [INFO] at String.replace (<anonymous>)
11:29:55,996 [Exec Stream Pumper] [INFO] at Object.module.exports (/build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/webpack-import-glob-loader/index.js:91:20)
11:29:55,996 [Exec Stream Pumper] [INFO]
11:29:55,996 [Exec Stream Pumper] [INFO] ERROR in /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/@types/gensync/index.d.ts
11:29:55,996 [Exec Stream Pumper] [INFO] [tsl] ERROR in /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/@types/gensync/index.d.ts(45,34)
11:29:55,996 [Exec Stream Pumper] [INFO] TS1005: ',' expected.
11:29:55,996 [Exec Stream Pumper] [INFO]
11:29:55,996 [Exec Stream Pumper] [INFO] ERROR in /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/@types/gensync/index.d.ts
11:29:55,996 [Exec Stream Pumper] [INFO] [tsl] ERROR in /build_root/build/samsclubcloudservices-p16404/ui.frontend/node_modules/@types/gensync/index.d.ts(45,47)
11:29:55,996 [Exec Stream Pumper] [INFO] TS1005: ',' expected.
11:29:56,044 [Exec Stream Pumper] [INFO] npm ERR! code ELIFECYCLE
11:29:56,044 [Exec Stream Pumper] [INFO] npm ERR! errno 2
11:29:56,045 [Exec Stream Pumper] [INFO] npm ERR! aem-maven-archetype@1.0.0 prod: `webpack -p --config ./webpack.prod.js && clientlib --verbose`
11:29:56,045 [Exec Stream Pumper] [INFO] npm ERR! Exit status 2
11:29:56,045 [Exec Stream Pumper] [INFO] npm ERR!
11:29:56,046 [Exec Stream Pumper] [INFO] npm ERR! Failed at the aem-maven-archetype@1.0.0 prod script.
11:29:56,046 [Exec Stream Pumper] [INFO] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
11:29:56,073 [Exec Stream Pumper] [INFO]
11:29:56,073 [Exec Stream Pumper] [INFO] npm ERR! A complete log of this run can be found in:
11:29:56,073 [Exec Stream Pumper] [INFO] npm ERR! /root/.npm/_logs/2025-02-13T11_29_56_048Z-debug.log
11:29:56,079 [main] [INFO] ------------------------------------------------------------------------
11:29:56,079 [main] [INFO] Reactor Summary for samsclub-aem-assets 1.0-SNAPSHOT:
11:29:56,079 [main] [INFO]
11:29:56,079 [main] [INFO] samsclub-aem-assets ................................ SUCCESS [ 2.786 s]
11:29:56,079 [main] [INFO] Sam's Club - Core .................................. SUCCESS [01:06 min]
11:29:56,080 [main] [INFO] samsclub-aem-assets.ui.frontend - UI Frontend ...... FAILURE [ 47.599 s]
11:29:56,080 [main] [INFO] Sam's Club - Repository Structure Package .......... SKIPPED
11:29:56,080 [main] [INFO] Sam's Club - UI apps ............................... SKIPPED
11:29:56,080 [main] [INFO] Sam's Club - UI content ............................ SKIPPED
11:29:56,080 [main] [INFO] Sam's Club - All ................................... SKIPPED
11:29:56,080 [main] [INFO] Sam's Club - Dispatcher ............................ SKIPPED
11:29:56,080 [main] [INFO] ------------------------------------------------------------------------
11:29:56,080 [main] [INFO] BUILD FAILURE
11:29:56,080 [main] [INFO] ------------------------------------------------------------------------
11:29:56,080 [main] [INFO] Total time: 02:03 min
11:29:56,080 [main] [INFO] Finished at: 2025-02-13T11:29:56Z
11:29:56,080 [main] [INFO] ------------------------------------------------------------------------
11:29:56,082 [main] [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.0:npm (npm run prod) on project samsclub-aem-assets.ui.frontend: Failed to run task: 'npm run prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) -> [Help 1]
11:29:56,082 [main] [ERROR]
11:29:56,082 [main] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
11:29:56,082 [main] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
11:29:56,082 [main] [ERROR]
11:29:56,082 [main] [ERROR] For more information about the errors and possible solutions, please read the following articles:
11:29:56,082 [main] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
11:29:56,082 [main] [ERROR]
11:29:56,082 [main] [ERROR] After correcting the problems, you can resume the build with the command
11:29:56,082 [main] [ERROR] mvn <args> -rf :samsclub-aem-assets.ui.frontend
Seems like a compatibility issue with the typescript. what version of typescript and gensync are you using?
for gensync 1.0.4 try using typescript version 4.5.
Views
Replies
Total Likes
Hi @chaudharynick ,
where to find the gensync and typescript versions? I couldn't find in pom.
please check the same in package.json.
it will look something like this
"dependencies": {
"gensync": "^1.0.0-beta.2"
},
"devDependencies": {
"typescript": "^5.2.2"
}
@Keerthana_H_N We resolved this error yesterday for us. So basically what you have to do is following :
Let me know how this goes.
Hi @Harwinder-singh ,
We are able to deploy in cloud with exiting node version but there is critical bug while deploying. For now we have overridden and deployed the code. We tried the above solution as well but the critical bug remains the same.
1. CM-Sonar-Build:all/pom.xml - Update this scope and remove the "systemPath" -Bug Critical
2. CM-Sonar-Build:pom.xml - Update this scope and remove the "systemPath". - Bug Critical
Critical bug occurred for this dependency:
<dependency>
<groupId>digital.hoodoo</groupId>
<artifactId>workfront-tools.ui.apps</artifactId>
<version>1.9.11</version>
<type>zip</type>
<scope>system</scope>
<systemPath>${project.basedir}/ui.apps/src/main/resources/workfront-tools.ui.apps.zip</systemPath>
</dependency>
how to handle this?
@Keerthana_H_N Something like this should do the trick
Views
Likes
Replies