Skip to content

Don't suppress build error backtraces #517

Description

@jtrost

Which operating system and version is the project developed on?
OS X 10.12.3

Which version of ruby is the project developed on?
2.4.0

Which version of npm is the project developed on?
4.1.2

Which version of ember-cli is the project developed on?
2.11.0

What is the rails version?
5.0.1

What is the ember-cli-rails version (from Gemfile)?
0.8.4

What is the ember-cli-rails-addon version (from package.json)?
0.8.0

I received this error in my application.

ActionView::Template::Error (:frontend has failed to build: 
):

It contained no backtrace, so I did not know what was wrong. I opened /lib/ember_cli/build_monitor.rb and inspected build_errors, and got this:

["\e[31m\n", "\e[31mMissing npm packages: \e[31m\n", "\e[0mPackage: \e[0m\e[36member-changeset\e[31m\n", "\e[90m  * Specified: \e[31m\e[0m1.2.1\e[0m\n", "\e[90m  * Installed: \e[31m\e[0m(not installed)\e[0m\n", "\e[0mPackage: \e[0m\e[36member-changeset-validations\e[31m\n", "\e[90m  * Specified: \e[31m\e[0m1.2.4\e[0m\n", "\e[90m  * Installed: \e[31m\e[0m(not installed)\e[0m\n", "\e[31mRun `npm install` to install missing dependencies.\e[31m\n", "\e[39m\n"]

This line suppresses all but the first build error, which in my case is:

"\e[31m\n"

That is why I did not see a backtrace with my build error. But I now know that I need to run npm install. This gem should show the entire backtrace, and not just the first line.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions