[ 
https://issues.apache.org/jira/browse/YARN-6003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15753808#comment-15753808
 ] 

Sreenath Somarajapuram commented on YARN-6003:
----------------------------------------------

It because npm uses semantic versioning (semver) rules and the dependencies are 
not locked. Semver relies on package developers to not making mistakes, and 
here we stumbled upon a package with a bug.
Best option to fix this issue would to move to yarn package manager instead of 
npm. It also comes with added advantages like faster build time & offline build 
support.
A patch for the same is under investigation.

> yarn-ui build failure caused by debug 2.4.0
> -------------------------------------------
>
>                 Key: YARN-6003
>                 URL: https://issues.apache.org/jira/browse/YARN-6003
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: build, yarn-ui-v2
>            Reporter: Akira Ajisaka
>            Priority: Minor
>
> The recent build failure: 
> https://builds.apache.org/job/hadoop-qbt-trunk-java8-linux-x86/255/artifact/out/patch-compile-root.txt
> {noformat}
> /testptch/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/src/main/webapp/node_modules/debug/debug.js:126
>   debug.color = selectColor(namespae);
>                             ^
> ReferenceError: namespae is not defined
>     at createDebug 
> (/testptch/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/src/main/webapp/node_modules/debug/debug.js:126:29)
>     at Object.<anonymous> 
> (/testptch/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/src/main/webapp/node_modules/ember-cli/lib/models/project.js:16:43)
>     at Module._compile (module.js:456:26)
>     at Object.Module._extensions..js (module.js:474:10)
>     at Module.load (module.js:356:32)
>     at Function.Module._load (module.js:312:12)
>     at Module.require (module.js:364:17)
>     at require (module.js:380:17)
>     at Object.<anonymous> 
> (/testptch/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/src/main/webapp/node_modules/ember-cli/lib/cli/index.js:4:21)
>     at Module._compile (module.js:456:26)
> {noformat}
> [email protected] is broken. https://github.com/visionmedia/debug/issues/347
> Maybe we need to set the version to 2.4.1 explicitly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to