Expand my Community achievements bar.

SOLVED

Maven Build Failure Issue

Avatar

Level 3

Hi Team, 

Did anyone see the below issue on Cloud Manager build pipeline ? how this got fixed ?

 

Thank you in advance.

Error :

3:05:53,154 [Exec Stream Pumper] [ERROR] The prop value with an expression type of ChainExpression could not be resolved. Please file issue to get this fixed immediately.
03:05:53,156 [Exec Stream Pumper] [ERROR] The prop value with an expression type of ChainExpression could not be resolved. Please file issue to get this fixed immediately.
03:05:53,160 [Exec Stream Pumper] [ERROR] The prop value with an expression type of ChainExpression could not be resolved. Please file issue to get this fixed immediately.
03:05:53,161 [Exec Stream Pumper] [ERROR] The prop value with an expression type of ChainExpression could not be resolved. Please file issue to get this fixed immediately.
03:07:08,623 [Exec Stream Pumper] [ERROR] The prop value with an expression type of ChainExpression could not be resolved. Please file issue to get this fixed immediately.
03:07:08,623 [Exec Stream Pumper] [ERROR] The prop value with an expression type of ChainExpression could not be resolved. Please file issue to get this fixed immediately.
03:07:55,900 [Exec Stream Pumper] [INFO] Failed to compile.
03:07:55,900 [Exec Stream Pumper] [INFO]
03:07:55,901 [Exec Stream Pumper] [INFO] ./node_modules/@loadable/component/dist/loadable.esm.mjs
03:07:55,901 [Exec Stream Pumper] [INFO] Can't import the named export 'isValidElementType' from non EcmaScript module (only default export is available)
03:07:55,901 [Exec Stream Pumper] [INFO]
03:07:55,901 [Exec Stream Pumper] [INFO]
03:07:55,995 [Exec Stream Pumper] [ERROR] npm ERR! code ELIFECYCLE
03:07:55,995 [Exec Stream Pumper] [ERROR] npm ERR! errno 1
03:07:55,999 [Exec Stream Pumper] [ERROR] npm ERR! react-app@0.1.0 build-js: `node scripts/build.js`
03:07:55,999 [Exec Stream Pumper] [ERROR] npm ERR! Exit status 1
03:07:55,999 [Exec Stream Pumper] [ERROR] npm ERR!
03:07:55,999 [Exec Stream Pumper] [ERROR] npm ERR! Failed at the react-app@0.1.0 build-js script.
03:07:55,999 [Exec Stream Pumper] [ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
03:07:56,025 [Exec Stream Pumper] [ERROR]
03:07:56,025 [Exec Stream Pumper] [ERROR] npm ERR! A complete log of this run can be found in:
03:07:56,025 [Exec Stream Pumper] [ERROR] npm ERR! /root/.npm/_logs/debug.log
03:07:56,031 [Exec Stream Pumper] [ERROR] ERROR: "build-js" exited with 1.
03:07:56,040 [Exec Stream Pumper] [ERROR] npm ERR! code ELIFECYCLE
03:07:56,040 [Exec Stream Pumper] [ERROR] npm ERR! errno 1
03:07:56,042 [Exec Stream Pumper] [ERROR] npm ERR! react-app@0.1.0 build: `cross-env NODE_ENV=production npm-run-all build-css build-js aem-clientlib`
03:07:56,042 [Exec Stream Pumper] [ERROR] npm ERR! Exit status 1
03:07:56,042 [Exec Stream Pumper] [ERROR] npm ERR!
03:07:56,042 [Exec Stream Pumper] [ERROR] npm ERR! Failed at the react-app@0.1.0 build script.
03:07:56,042 [Exec Stream Pumper] [ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi @arunpatidar 

I found the reason for the issue.

Problem was in the version of @loadable/component dependency in package.json which was updated by library and cause sudden failure in the build.

 

All sorted now. Thank you for helping out.

View solution in original post

7 Replies

Avatar

Community Advisor

HI @Sumit30908642ioye 
Could you please check the webpack.config.js to add.mjsto theextensions , more details at

https://stackoverflow.com/questions/69343038/cant-import-the-named-export-xxxx-from-non-ecmascript-m... 

 

03:07:55,901 [Exec Stream Pumper] [INFO] ./node_modules/@loadable/component/dist/loadable.esm.mjs
03:07:55,901 [Exec Stream Pumper] [INFO] Can't import the named export 'isValidElementType' from non EcmaScript module (only default export is available)



Arun Patidar

Avatar

Level 3

Thank you Arun.

I followed the steps shared in the URL but no luck.

Failed to compile.

./node_modules/@loadable/component/dist/loadable.esm.mjs
Can't import the named export 'isValidElementType' from non EcmaScript module (only default export is available)

Sharing more background which I thought could be the reason actually we are using these version.

<frontend-maven-plugin.version>1.6</frontend-maven-plugin.version>
<node.version>v10.8.0</node.version>
<npm.version>6.2.0</npm.version>

Not sure if could this caused the issue but it somehow working till date on Cloud Manager. Today suddenly it stops working.

Avatar

Community Advisor

Hi @Sumit30908642ioye 
Yes, It could be the node version. Are you installing Node and npm as part of deployment?



Arun Patidar

Avatar

Level 3

Yes Arun Using <frontend-maven-plugin.version>1.6</frontend-maven-plugin.version>

Avatar

Level 3

Hi @arunpatidar 

Full Error details:

03:07:55,900 [Exec Stream Pumper] [INFO] Failed to compile.
03:07:55,900 [Exec Stream Pumper] [INFO]
03:07:55,901 [Exec Stream Pumper] [INFO] ./node_modules/@loadable/component/dist/loadable.esm.mjs
03:07:55,901 [Exec Stream Pumper] [INFO] Can't import the named export 'isValidElementType' from non EcmaScript module (only default export is available)
03:07:55,901 [Exec Stream Pumper] [INFO]
03:07:55,901 [Exec Stream Pumper] [INFO]
03:07:55,995 [Exec Stream Pumper] [ERROR] npm ERR! code ELIFECYCLE
03:07:55,995 [Exec Stream Pumper] [ERROR] npm ERR! errno 1
03:07:55,999 [Exec Stream Pumper] [ERROR] npm ERR! react-app@0.1.0 build-js: `node scripts/build.js`
03:07:55,999 [Exec Stream Pumper] [ERROR] npm ERR! Exit status 1
03:07:55,999 [Exec Stream Pumper] [ERROR] npm ERR!
03:07:55,999 [Exec Stream Pumper] [ERROR] npm ERR! Failed at the react-app@0.1.0 build-js script.
03:07:55,999 [Exec Stream Pumper] [ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
03:07:56,025 [Exec Stream Pumper] [ERROR]
03:07:56,025 [Exec Stream Pumper] [ERROR] npm ERR! A complete log of this run can be found in:
03:07:56,025 [Exec Stream Pumper] [ERROR] npm ERR! /root/.npm/_logs/2023-12-19T03_07_56_000Z-debug.log
03:07:56,031 [Exec Stream Pumper] [ERROR] ERROR: "build-js" exited with 1.
03:07:56,040 [Exec Stream Pumper] [ERROR] npm ERR! code ELIFECYCLE
03:07:56,040 [Exec Stream Pumper] [ERROR] npm ERR! errno 1
03:07:56,042 [Exec Stream Pumper] [ERROR] npm ERR! react-app@0.1.0 build: `cross-env NODE_ENV=production npm-run-all build-css build-js aem-clientlib`
03:07:56,042 [Exec Stream Pumper] [ERROR] npm ERR! Exit status 1
03:07:56,042 [Exec Stream Pumper] [ERROR] npm ERR!
03:07:56,042 [Exec Stream Pumper] [ERROR] npm ERR! Failed at the react-app@0.1.0 build script.
03:07:56,042 [Exec Stream Pumper] [ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
03:07:56,056 [Exec Stream Pumper] [ERROR]
03:07:56,056 [Exec Stream Pumper] [ERROR] npm ERR! A complete log of this run can be found in:
03:07:56,056 [Exec Stream Pumper] [ERROR] npm ERR! /root/.npm/_logs/2023-12-19T03_07_56_044Z-debug.log
03:07:56,067 [main] [INFO] ------------------------------------------------------------------------
03:07:56,067 [main] [INFO] Reactor Summary for project 0.0.1-SNAPSHOT:
03:07:56,067 [main] [INFO]
03:07:56,067 [main] [INFO]project .................................. SUCCESS [ 0.483 s]
03:07:56,067 [main] [INFO] project - Core ................................. SUCCESS [06:32 min]
03:07:56,067 [main] [INFO] project - React App ............................ FAILURE [05:13 min]
03:07:56,067 [main] [INFO] project - UI apps .............................. SKIPPED
03:07:56,068 [main] [INFO] project - UI content ........................... SKIPPED
03:07:56,068 [main] [INFO] project ................................................ SKIPPED
03:07:56,068 [main] [INFO] ------------------------------------------------------------------------
03:07:56,068 [main] [INFO] BUILD FAILURE
03:07:56,068 [main] [INFO] ------------------------------------------------------------------------
03:07:56,069 [main] [INFO] Total time: 11:50 min
03:07:56,070 [main] [INFO] Finished at: 2023-12-19T03:07:56Z
03:07:56,070 [main] [INFO] ------------------------------------------------------------------------
03:07:56,074 [main] [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm run build) on project project react: Failed to run task: 'npm run build' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

Avatar

Community Advisor

Hi @Sumit30908642ioye 
The issue is defiantly with the src code or the npm imported modules

https://stackoverflow.com/questions/61237208/rollup-error-default-is-not-exported-by-node-modules-re... 

 

Can you try removing isValidElementType reference and test?



Arun Patidar

Avatar

Correct answer by
Level 3

Hi @arunpatidar 

I found the reason for the issue.

Problem was in the version of @loadable/component dependency in package.json which was updated by library and cause sudden failure in the build.

 

All sorted now. Thank you for helping out.