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 Compatibility #49

Open
techsoldaten opened this issue Jun 30, 2016 · 1 comment
Open

Fastboot Compatibility #49

techsoldaten opened this issue Jun 30, 2016 · 1 comment

Comments

@techsoldaten
Copy link

ember-cli-pretender throws an error when used with fastboot.

2016-06-30T03:13:47.773Z 500 Unknown Error: ReferenceError: document is not defined at parseURL (/ember/public/dist/fastboot/vendor.js:68010:16)

The offending code:

function parseURL(url) { // TODO: something for when document isn't present... #yolo var anchor = document.createElement('a'); anchor.href = url; anchor.fullpath = anchor.pathname + (anchor.search || '') + (anchor.hash || ''); return anchor; }

@musaffa
Copy link

musaffa commented Mar 20, 2018

In Fastboot environment, I get this error Could not find module pretender imported from 'initializers/start-server'. In start-server.js, I tried to import pretender by import Pretender from 'pretender';

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