Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-20914

Files view does not build due to new version of ember-cli-htmlbars-inline-precompile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.3
    • 2.4.3
    • ambari-views, contrib
    • None

    Description

      Files View fails to compile due to the following error:

      [INFO] --- exec-maven-plugin:1.3.2:exec (Files build) @ files ---
      /grid/0/jenkins/workspace/Zuul_Ambari_Build_Job/hdp-BUILDS/ambari/contrib/views/files/src/main/resources/ui/node_modules/ember-cli-htmlbars-inline-precompile/index.js:14
        init() {
            ^
      Unexpected token (
      /grid/0/jenkins/workspace/Zuul_Ambari_Build_Job/hdp-BUILDS/ambari/contrib/views/files/src/main/resources/ui/node_modules/ember-cli-htmlbars-inline-precompile/index.js:14
        init() {
            ^
      SyntaxError: Unexpected token (
          at exports.runInThisContext (vm.js:73:16)
          at Module._compile (module.js:443:25)
          at Object.Module._extensions..js (module.js:478:10)
          at Module.load (module.js:355:32)
          at Function.Module._load (module.js:310:12)
          at Module.require (module.js:365:17)
          at require (module.js:384:17)
      

      This is because ember-cli-htmlbars-inline-precompile@0.3.8 was introduced. The build process worked fine with ember-cli-htmlbars-inline-precompile@0.3.6 before. Modifying package.json to fix the version to 0.3.6 let
      s the build finish successfully.

      Attachments

        1. AMBARI-20914.patch
          0.6 kB
          Yusaku Sako

        Activity

          People

            u39kun Yusaku Sako
            u39kun Yusaku Sako
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: