Hi, several times I've been faced with this when trying to deploy to Heroku, and everytime I lost one night trying to solve the issue (call me goldfish but I tend to forget solutions to issues after 6 months): I don't know why or when or how, but sometimes the postinstall hook disappears from package.json, leading to the cryptic error EmberCli::BuildError: has failed to build: TypeError: Cannot read property 'option' of undefined in the heroku logs. ember build --environment=production works well in the console so it's especially tricky to debug. Is there a way to add a warning from ember-cli-rails when the postinstall hook is missing?
Disclaimer: using ember-cli-rails-addon version 0.7.0 so apologies if this has been fixed in further releases.
Hi, several times I've been faced with this when trying to deploy to Heroku, and everytime I lost one night trying to solve the issue (call me goldfish but I tend to forget solutions to issues after 6 months): I don't know why or when or how, but sometimes the
postinstall
hook disappears from package.json, leading to the cryptic errorEmberCli::BuildError: has failed to build: TypeError: Cannot read property 'option' of undefined
in the heroku logs.ember build --environment=production
works well in the console so it's especially tricky to debug. Is there a way to add a warning from ember-cli-rails when thepostinstall
hook is missing?Disclaimer: using ember-cli-rails-addon version 0.7.0 so apologies if this has been fixed in further releases.
https://github.com/thoughtbot/ember-cli-rails/issues/80