Page MenuHomePhorge

Ember build fails
Closed, WontfixPublic

Description

Executing ember build fails in either of two ways.

Steps to reproduce/examine:

$ docker pull kolab/roundcube-next
$ docker run -it --entrypoint /bin/bash kolab/roundcube-next -s

This gets you in to /var/www/roundcube-shell.git/ with the following having been executed to build the image (Dockerfile). Note that roundcube-shell.git pull request #1 is applied in that Dockerfile.

Using ember build:

Step 19 : RUN ember build
 ---> Running in e9b7ab3db5a0
DEPRECATION: Node v0.10.36 is no longer supported by Ember CLI. Please update to a more recent version of Node
undefined
version: 1.13.12
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
BuildingRule "disallowVar" is already registered
AssertionError: Rule "disallowVar" is already registered
    at NodeConfiguration.Configuration.registerRule (/var/www/roundcube-shell.git/node_modules/ember-suave/node_modules/broccoli-jscs/node_modules/jscs/lib/config/configuration.js:864:5)
    at NodeConfiguration.Configuration._loadAdditionalRule (/var/www/roundcube-shell.git/node_modules/ember-suave/node_modules/broccoli-jscs/node_modules/jscs/lib/config/configuration.js:825:10)
    at NodeConfiguration.<anonymous> (/var/www/roundcube-shell.git/node_modules/ember-suave/node_modules/broccoli-jscs/node_modules/jscs/lib/config/node-configuration.js:213:61)
    at Array.forEach (native)
    at NodeConfiguration._loadAdditionalRule (/var/www/roundcube-shell.git/node_modules/ember-suave/node_modules/broccoli-jscs/node_modules/jscs/lib/config/node-configuration.js:211:61)
    at NodeConfiguration.<anonymous> (/var/www/roundcube-shell.git/node_modules/ember-suave/node_modules/broccoli-jscs/node_modules/jscs/lib/config/configuration.js:502:18)
    at Array.forEach (native)
    at NodeConfiguration.Configuration._processConfig (/var/www/roundcube-shell.git/node_modules/ember-suave/node_modules/broccoli-jscs/node_modules/jscs/lib/config/configuration.js:501:33)
    at NodeConfiguration.Configuration._loadPreset (/var/www/roundcube-shell.git/node_modules/ember-suave/node_modules/broccoli-jscs/node_modules/jscs/lib/config/configuration.js:748:10)
    at NodeConfiguration._loadPreset (/var/www/roundcube-shell.git/node_modules/ember-suave/node_modules/broccoli-jscs/node_modules/jscs/lib/config/node-configuration.js:163:41)
The command '/bin/sh -c ember build' returned a non-zero code: 1

Using ember build --environment production:

Step 19 : RUN ember build --environment production
 ---> Running in d651f8b352c0
DEPRECATION: Node v0.10.36 is no longer supported by Ember CLI. Please update to a more recent version of Node
undefined
version: 1.13.12
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
BuildingBuilding.Building..Building...BuildingBuilding.Building..Building...BuildingBuilding.Building..Build failed.
File: assets/roundcube-shell.css
Promise is not defined
ReferenceError: Promise is not defined
    at LazyResult.async (/var/www/roundcube-shell.git/node_modules/ember-cli-autoprefixer/node_modules/broccoli-autoprefixer/node_modules/postcss/lib/lazy-result.js:152:31)
    at LazyResult.then (/var/www/roundcube-shell.git/node_modules/ember-cli-autoprefixer/node_modules/broccoli-autoprefixer/node_modules/postcss/lib/lazy-result.js:75:21)
    at AutoprefixerFilter.processString (/var/www/roundcube-shell.git/node_modules/ember-cli-autoprefixer/node_modules/broccoli-autoprefixer/index.js:38:4)
    at Object.module.exports.processString (/var/www/roundcube-shell.git/node_modules/ember-cli-autoprefixer/node_modules/broccoli-autoprefixer/node_modules/broccoli-persistent-filter/lib/strategies/default.js:7:16)
    at Processor.processString (/var/www/roundcube-shell.git/node_modules/ember-cli-autoprefixer/node_modules/broccoli-autoprefixer/node_modules/broccoli-persistent-filter/lib/processor.js:20:25)
    at /var/www/roundcube-shell.git/node_modules/ember-cli-autoprefixer/node_modules/broccoli-autoprefixer/node_modules/broccoli-persistent-filter/index.js:185:16
    at lib$rsvp$$internal$$initializePromise (/var/www/roundcube-shell.git/node_modules/ember-cli-autoprefixer/node_modules/broccoli-autoprefixer/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/rsvp.js:541:9)
    at new lib$rsvp$promise$$Promise (/var/www/roundcube-shell.git/node_modules/ember-cli-autoprefixer/node_modules/broccoli-autoprefixer/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/rsvp.js:757:9)
    at invoke (/var/www/roundcube-shell.git/node_modules/ember-cli-autoprefixer/node_modules/broccoli-autoprefixer/node_modules/broccoli-persistent-filter/index.js:184:10)
    at AutoprefixerFilter.Filter.processFile (/var/www/roundcube-shell.git/node_modules/ember-cli-autoprefixer/node_modules/broccoli-autoprefixer/node_modules/broccoli-persistent-filter/index.js:201:16)
The command '/bin/sh -c ember build --environment production' returned a non-zero code: 1

Details

Ticket Type
Task

Event Timeline

vanmeeuwen raised the priority of this task from to High.
vanmeeuwen updated the task description. (Show Details)
vanmeeuwen added a project: Roundcube-Next.
vanmeeuwen moved this task to Backlog on the Roundcube-Next board.
vanmeeuwen changed Ticket Type from Task to Task.
vanmeeuwen subscribed.

Node v0.12.8:

Step 22 : RUN ember build --environment production
 ---> Running in e3fb4532f4ef
version: 1.13.12
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
BuildingBuilding.Building..Building...BuildingBuilding.Building..Building...BuildingBuilding.Building..Building...bundle exec livingstyleguide compile app/styles/styleguide.lsg /var/www/roundcube-shell.git/tmp/living_style_guide_compiler-tmp_dest_dir-WfgcpdAB.tmp/assets/styleguide.html
Build failed.
broccoli-livingstyleguide exited with error code 1 [string exception]
Error: broccoli-livingstyleguide exited with error code 1 [string exception]
    at wrapStringErrors (/var/www/roundcube-shell.git/node_modules/broccoli/lib/builder.js:18:11)
    at lib$rsvp$$internal$$tryCatch (/var/www/roundcube-shell.git/node_modules/rsvp/dist/rsvp.js:493:16)
    at lib$rsvp$$internal$$invokeCallback (/var/www/roundcube-shell.git/node_modules/rsvp/dist/rsvp.js:505:17)
    at lib$rsvp$$internal$$publish (/var/www/roundcube-shell.git/node_modules/rsvp/dist/rsvp.js:476:11)
    at lib$rsvp$$internal$$publishRejection (/var/www/roundcube-shell.git/node_modules/rsvp/dist/rsvp.js:419:7)
    at lib$rsvp$asap$$flush (/var/www/roundcube-shell.git/node_modules/rsvp/dist/rsvp.js:1198:9)
    at process._tickCallback (node.js:355:11)
The command '/bin/sh -c ember build --environment production' returned a non-zero code: 1

As was to be expected at the start of this project.