Howdy,
I’ve been trying to identify the root cause of the SDC compilation error and I
noticed that it’s caused by onboarding-ui-war module. I’m getting the
following error when it tries to run the build maven goal[1]
[INFO] [1025] ./src/sdc-app/heatvalidation/UploadScreen.jsx 3.7 kB {2} [built]
[INFO] [1083] multi sdc-app/heatValidation.app.jsx 28 bytes {2} [built]
[INFO] + 904 hidden modules
[INFO]
[INFO] ERROR in ./src/sdc-app/flows/SequenceDiagram.jsx
[INFO] Module not found: Error: Can't resolve 'dox-sequence-diagram-ui' in
'/opt/sdc/openecomp-ui/src/sdc-app/flows'
[INFO] @ ./src/sdc-app/flows/SequenceDiagram.jsx 37:28-62
[INFO] @ ./src/sdc-app/flows/FlowsListEditorView.jsx
[INFO] @ ./src/sdc-app/flows/FlowsListEditor.js
[INFO] @ ./src/sdc-app/ModulesOptions.jsx
[INFO] @ ./src/sdc-app/sdc.app.jsx
[INFO] @ multi sdc-app/sdc.app.jsx
[INFO] bundleJS : Failure!!
[INFO] -language: en
[INFO] [21:13:19] 'prod' errored after 2.25 min
[INFO] [21:13:19] Error: Webpack build FAILED
[INFO] at prodTask.catch.err (/opt/sdc/openecomp-ui/gulpfile.js:89:9)
[INFO] at tryCatcher
(/opt/sdc/openecomp-ui/node_modules/bluebird/js/main/util.js:26:23)
[INFO] at Promise._settlePromiseFromHandler
(/opt/sdc/openecomp-ui/node_modules/bluebird/js/main/promise.js:510:31)
[INFO] at Promise._settlePromiseAt
(/opt/sdc/openecomp-ui/node_modules/bluebird/js/main/promise.js:584:18)
[INFO] at Promise._settlePromises
(/opt/sdc/openecomp-ui/node_modules/bluebird/js/main/promise.js:700:14)
[INFO] at Async._drainQueue
(/opt/sdc/openecomp-ui/node_modules/bluebird/js/main/async.js:123:16)
[INFO] at Async._drainQueues
(/opt/sdc/openecomp-ui/node_modules/bluebird/js/main/async.js:133:10)
[INFO] at Immediate.Async.drainQueues
(/opt/sdc/openecomp-ui/node_modules/bluebird/js/main/async.js:15:14)
[INFO] at runCallback (timers.js:649:20)
[INFO] at tryOnImmediate (timers.js:622:5)
[INFO] at processImmediate [as _immediateCallback] (timers.js:594:5)
[INFO]
My understanding is that maven[1] calls gulp[2], gulp calls webpack in its prod
task[3] and the prod task loads the modules using the webpack.production.js
file[4]. I’m currently using the code as it is in the
repo(https://git.onap.org/sdc/) but I’m not sure if I’m missing something? Any
help will be really appreciated.
Regards/Saludos
Victor Morales
irc: electrocucaracha
[1] https://git.onap.org/sdc/tree/openecomp-ui/pom.xml#n114
[2] https://git.onap.org/sdc/tree/openecomp-ui/package.json#n9
[3] https://git.onap.org/sdc/tree/openecomp-ui/gulpfile.js#n80
[4] https://git.onap.org/sdc/tree/openecomp-ui/tools/gulp/tasks/prod.js#n89
From: <[email protected]> on behalf of Victor Morales
<[email protected]>
Date: Monday, July 3, 2017 at 11:12 AM
To: "[email protected]" <[email protected]>
Subject: [onap-discuss] [sdc] Help for compiling SDC module
Hey there,
I’m trying to compile the SDC repo[1] with the command `mvn clean install
-DskipTests=true -Dmaven.test.skip=true -Dadditionalparam=-Xdoclint:none` but
I’m getting the following error:
==> sdc: [ERROR] npm ERR! code ENOENT
==> sdc: [ERROR] npm ERR! errno -2
==> sdc: [ERROR] npm ERR! syscall chmod
==> sdc: [ERROR]
==> sdc: [ERROR] npm ERR! enoent ENOENT: no such file or directory, chmod
'/opt/sdc/openecomp-ui/node_modules/coffee-script/bin/coffee'
==> sdc: [ERROR] npm ERR! enoent ENOENT: no such file or directory, chmod
'/opt/sdc/openecomp-ui/node_modules/coffee-script/bin/coffee'
==> sdc: [ERROR] npm ERR! enoent This is most likely not a problem with npm
itself
==> sdc: [ERROR] npm ERR! enoent and is related to npm not being able to find a
file.
==> sdc: [ERROR] npm ERR! enoent
==> sdc: [ERROR]
==> sdc: [ERROR] npm ERR! Please include the following file with any support
request:
==> sdc: [ERROR] npm ERR! /opt/sdc/openecomp-ui/npm-debug.log
During the compilation of onboarding-ui-war module, I tried updating the
node.js and npm versions and adding some dependencies(like coffe, istambul and
others) without any success. I just wondering if there is a missing step or
dependency for that compilation.
Thanks
Victor Morales
irc: electrocucaracha
[1] https://git.onap.org/sdc/
_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss