ember-fastboot / ember-cli-fastboot

Server-side rendering for Ember.js apps
http://ember-fastboot.com/
MIT License
851 stars 160 forks source link

Fastboot: this.get('fastBoot.isFastBoot') is undefined #598

Open abhishek97 opened 6 years ago

abhishek97 commented 6 years ago

While debugging an error in authentication for my app, I came across this in ember-cookie

_fastBoot: Ember.computed(function () {
      var owner = Ember.getOwner(this);

      return owner.lookup('service:fastboot');
}),

But when I set a breakpoint in code, I see that this.get('_fastBoot.isFastBoot') is undefined , while this.get('_fastBoot').get('isFastBoot') is true. This is breaking out an if block and brekaing the application.

kratiahuja commented 6 years ago

Can you provide a reproduction? Seems like you may be using an old version where isFastBoot was a CP