Maven Build Failure Issue | Community
Skip to main content
New Participant
December 20, 2023
Solved

Maven Build Failure Issue

  • December 20, 2023
  • 1 reply
  • 2117 views

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.

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

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-react-index-js 

 

Can you try removing isValidElementType reference and test?


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.

1 reply

arunpatidar
New Participant
December 20, 2023

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-module-only-default-expo 

 

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
New Participant
December 20, 2023

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.
arunpatidar
New Participant
December 20, 2023

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

Arun Patidar