Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't suppress build error backtraces #517

Open
jtrost opened this issue Feb 21, 2017 · 1 comment
Open

Don't suppress build error backtraces #517

jtrost opened this issue Feb 21, 2017 · 1 comment

Comments

@jtrost
Copy link

jtrost commented Feb 21, 2017

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.

@shcherbanikolay
Copy link

Maybe it will be help for somebody. When i got
ActionView::Template::Error (:frontend has failed to build: )
This seemed that it was all good with your rails project, but there were issues with ember part of it.
So i changed directory to my frontend project directory. Then runed ember server. And ember told me that i have missing npm packages. I run npm install, and it solved my issue. Excuse me for my bad English.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants