# Fastboot and embroider build failures

**URL:** <https://discuss.emberjs.com/t/fastboot-and-embroider-build-failures/18992>\
**Category:** Build Issues\
**Created:** [July 13, 2021, 10:49am UTC](https://discuss.emberjs.com/t/fastboot-and-embroider-build-failures/18992 "2021-07-13T10:49:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![roomman](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/roomman/32/17451_2.png) [@roomman](https://discuss.emberjs.com/u/roomman)\
**Post date:** [July 13, 2021, 10:49am UTC](https://discuss.emberjs.com/t/fastboot-and-embroider-build-failures/18992/1 "2021-07-13T10:49:56Z")

</div>

I’ve got a new Ember app (3.26) that was running nicely with Fastboot enabled. I just added Embroider and now I am getting the following build error whenever I serve:

`Error: An incompatible version between 'ember-cli-fastboot' and 'fastboot' was found. Please update the version of fastboot library that is compatible with ember-cli-fastboot.`

I can see that ‘ember-cli-fastboot@2.2.3’ depends on ‘fastboot@2.0.3’. I have tried adding fastboot to my package.json, but the error is persisting.

As soon as I revert back to the classic build approach, the error disappears.

Has anyone else encountered this?

---

<div class="post-metadata">

**Author:** ![ef4](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ef4/32/13470_2.png) [@ef4](https://discuss.emberjs.com/u/ef4)\
**Post date:** [July 14, 2021, 12:25am UTC](https://discuss.emberjs.com/t/fastboot-and-embroider-build-failures/18992/2 "2021-07-14T00:25:30Z")

</div>

You need a version of ember-cli-fastboot that depends on fastboot \>= 3.1.

I think there are only beta releases of ember-cli-fastboot that have that.

---

<div class="post-metadata">

**Author:** ![ef4](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ef4/32/13470_2.png) [@ef4](https://discuss.emberjs.com/u/ef4)\
**Post date:** [July 14, 2021, 12:26am UTC](https://discuss.emberjs.com/t/fastboot-and-embroider-build-failures/18992/3 "2021-07-14T00:26:16Z")

</div>

Or you can use something like yarn resolutions to force the upgrade, and that will work. That’s how embroider’s own test suite covers fastboot:

> <https://github.com/embroider-build/embroider/blob/e5120b7a11d646fa97c55b6334626d4dc7f635d6/package.json#L40>

---

<div class="post-metadata">

**Author:** ![roomman](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/roomman/32/17451_2.png) [@roomman](https://discuss.emberjs.com/u/roomman)\
**Post date:** [July 15, 2021, 8:33am UTC](https://discuss.emberjs.com/t/fastboot-and-embroider-build-failures/18992/4 "2021-07-15T08:33:20Z")

</div>

Perfect, thank you for your help!

---

<div class="post-metadata">

**Author:** ![roomman](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/roomman/32/17451_2.png) [@roomman](https://discuss.emberjs.com/u/roomman)\
**Post date:** [July 23, 2021, 10:06am UTC](https://discuss.emberjs.com/t/fastboot-and-embroider-build-failures/18992/5 "2021-07-23T10:06:36Z")

</div>

Thanks @ef4 but I’ve come back to this and I am still unable to get Fastboot and Embroider to play well. I’ve gone back to basics and:

- Setup a brand new, vanilla Ember 3.27 project;
- Installed fastboot@3.2.0-beta.2 (following the [Ember Real World](https://github.com/xg-wang/ember-realworld-fastboot) example);
- Served the app to ensure it’s working, which it is;
- Enabled Embroider, as per the GitHub docs; and
- Served the app, which no longer works.

Using `http://localhost:4200/?fastboot=false` gets me into the console and I can see that the issue relates to Ember Data:

```auto
[Error] TypeError: undefined is not an object (evaluating '_ember_data_store __WEBPACK_IMPORTED_MODULE_0__.default.prototype')
	Eval Code (setup.js:20)
	eval
	./node_modules/@ember-data/debug/setup.js (chunk.f27422fdde9dcf727521.js:160)
	__webpack_require__ (chunk.b6bb8832290a7beff48c.js:31)
	Eval Code (ember-data-data-adapter.js:5:114)
	eval
	./initializers/ember-data-data-adapter.js (chunk.07c688fc51be590ad475.js:194)
	__webpack_require__ (chunk.b6bb8832290a7beff48c.js:31)
...

```

Is there a step I am missing with regards to making Ember Data compatible with Embroider?

---

<div class="post-metadata">

**Author:** ![ef4](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ef4/32/13470_2.png) [@ef4](https://discuss.emberjs.com/u/ef4)\
**Post date:** [July 28, 2021, 10:50pm UTC](https://discuss.emberjs.com/t/fastboot-and-embroider-build-failures/18992/6 "2021-07-28T22:50:43Z")

</div>

You are probably hitting [Issue with @ember-data/debug/setup.js · Issue #826 · embroider-build/embroider · GitHub](https://github.com/embroider-build/embroider/issues/826)

You can downgrade ember-data to 3.26 or if you’re feeling adventurous, try running [the not-yet-merged PR](https://github.com/embroider-build/embroider/pull/880) that fixes it.
