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

FastBoot support: ReferenceError: document is not defined #15

Closed
scottwernervt opened this issue Jun 23, 2017 · 1 comment
Closed

FastBoot support: ReferenceError: document is not defined #15

scottwernervt opened this issue Jun 23, 2017 · 1 comment

Comments

@scottwernervt
Copy link
Contributor

@scottwernervt scottwernervt commented Jun 23, 2017

Bug
ember-attacher fails to run under fastboot with the following errors:

There was an error running your app in fastboot. More info about the error: 
 ReferenceError: document is not defined
    at Module.callback (/home/swerner/development/ember-attacher/tmp/broccoli_merge_trees-output_path-3Bu8LoXQ.tmp/assets/addon-tree-output/ember-attacher/components/ember-attacher.js:20:1)
There was an error running your app in fastboot. More info about the error: 
 Error: Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).
    at InertRenderer.getElement (/home/swerner/development/ember-attacher/tmp/broccoli_merge_trees-output_path-LqT88ym5.tmp/assets/vendor/ember/ember.debug.js:14386:1)
    at Class.get (/home/swerner/development/ember-attacher/tmp/broccoli_merge_trees-output_path-LqT88ym5.tmp/assets/vendor/ember/ember.debug.js:43743:1)
    at Class.<anonymous> (/home/swerner/development/ember-attacher/tmp/broccoli_merge_trees-output_path-LqT88ym5.tmp/assets/addon-tree-output/ember-attacher/components/ember-attacher.js:66:1)

Related to FastBoot support: ReferenceError: navigator is not defined #14.

Instructions

  1. yarn upgrade ember-popper@0.3.0
  2. yarn add ember-cli-fastboot --dev
  3. ember server
@kybishop

This comment has been minimized.

Copy link
Owner

@kybishop kybishop commented Jun 23, 2017

One more trip around the fastboot train :) will tackle this tonight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.