ember-cli / ember-cli/ember-fetch
FastBoot is not defined from Browser Console
- Dominant language
- JavaScript
- Stars
- 176
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
I see the following error in my browser console:
Error in Component#send ReferenceError: FastBoot is not defined
Though this cannot be correct, as our Ember Application is NOT FastBoot enabled.
**Culprit?**
Also in Chrome Dev Tools - Sources I see a file named: `fastboot-fetch.js`
```
(function() {
define('fetch', ['exports'], function(self) {
var fetch = FastBoot.require('node-fetch');
self['default'] = fetch;
self['Headers'] = fetch.Headers;
self['Request'] = fetch.Request;
self['Response'] = fetch.Response;
});
define('fetch/ajax', ['exports'], function() {
throw new Error('You included `fetch/ajax` but it was renamed to `ember-fetch/ajax`');
});
})();
```
**Our Context**
We have not explicitly installed this `ember-fetch` package. Rather `ember-fetch` is a dependency upon `ember-simple-auth`, which we have explicitly npm installed.
We are using Ember Engines with lazyLoading enabled.
**Similar Issue**
The GitHub Repo `ember-cli-moment-shim` had a similar issue:
Issue: https://github.com/jasonmit/ember-cli-moment-shim/issues/145
Fix: https://github.com/jasonmit/ember-cli-moment-shim/commit/591ae7a3c164df8023838d4f04e20c98583b555c
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.