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

Ambari Web does not compile

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.4.2
    • 1.4.2
    • ambari-web
    • None

    Description

      Ambari Web does not compile.
      "brunch build" shows the following error:

      $ brunch build
      
      TypeError: Object 0 has no method 'toLowerCase'
          at Object.parse [as shorthandParser] (/Users/yusakusako/ambari-vagrant/centos/incubator-ambari/ambari-web/node_modules/ember-precompiler-brunch/node_modules/jsdom/node_modules/cssstyle/lib/parsers.js:349:11)
          at CSSStyleDeclaration.border (/Users/yusakusako/ambari-vagrant/centos/incubator-ambari/ambari-web/node_modules/ember-precompiler-brunch/node_modules/jsdom/node_modules/cssstyle/lib/parsers.js:373:27)
          at Object.j (<anonymous>:2:20336)
          at o (<anonymous>:2:14733)
          at Object.p.fireWith (<anonymous>:2:15502)
          at e.extend.ready [as _onTimeout] (<anonymous>:2:9594)
          at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
      

      This is because cssstyle has changed from 0.2.3 that was working before, to 0.2.5, that is no longer compatible with ember-precompiler-brunch.
      The workaround is to force installation of cssstyle@0.2.3.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment