Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

Installing this addon breaks application controller #1

Open
jacobq opened this issue Jun 24, 2016 · 0 comments
Open

Installing this addon breaks application controller #1

jacobq opened this issue Jun 24, 2016 · 0 comments

Comments

@jacobq
Copy link
Contributor

jacobq commented Jun 24, 2016

I don't quite understand why this is the case, but this cost me many hours of debug time to find, so I wanted to make people aware of it. To reproduce the problem do the following:

  1. ember new demo-app
  2. cd demo-app
  3. Edit package.json to remove ember-welcome-page
  4. ember generate controller application
  5. Edit app/controllers/application.js to display a message when it gets initialized. For example:
import Ember from 'ember';

export default Ember.Controller.extend({
    init() {
        this._super(...arguments);
        alert('working!!!');
        console.log("WORKING!!!");
    }
});
  1. ember server (see that it works)
  2. ember install ember-cli-template-debug
  3. ember server (see that it no longer works -- no message)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant