question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fastboot error with Embroider

See original GitHub issue

Started to migrate to Embroider using Prember and Ember-cli-fastboot

ember-cli-fastboot installed with ember install ember-cli-fastboot prember installed with ember install prember

"@embroider/compat": "^0.19.0",
"@embroider/core": "^0.19.0",
"@embroider/router": "^0.19.0",
"@embroider/webpack": "^0.19.0",
"ember-cli-fastboot": "^2.2.3",
"prember": "^1.0.4",

Receiving this error during development build using ember s

@embroider/webpack (1)                   | 6626ms    
Babel: ember-cli-head (1)                | 1264ms    
@embroider/compat/app (1)                | 783ms     

App is being served by FastBoot
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.
    at EmberApp.readPackageJSON (/Users/jrodkey/Projects/@now/ember-marketing/node_modules/fastboot/src/ember-app.js:405:13)
    at new EmberApp (/Users/jrodkey/Projects/@now/ember-marketing/node_modules/fastboot/src/ember-app.js:35:23)
    at FastBoot._buildEmberApp (/Users/jrodkey/Projects/@now/ember-marketing/node_modules/fastboot/src/index.js:114:17)
    at new FastBoot (/Users/jrodkey/Projects/@now/ember-marketing/node_modules/fastboot/src/index.js:52:10)
    at app.use (/Users/jrodkey/Projects/@now/ember-marketing/node_modules/ember-cli-fastboot/index.js:335:29)
    at Layer.handle [as handle_request] (/Users/jrodkey/Projects/@now/ember-marketing/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/jrodkey/Projects/@now/ember-marketing/node_modules/express/lib/router/index.js:317:13)
    at /Users/jrodkey/Projects/@now/ember-marketing/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/jrodkey/Projects/@now/ember-marketing/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/jrodkey/Projects/@now/ember-marketing/node_modules/express/lib/router/index.js:275:10)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kiwiupovercommented, Jul 13, 2020

https://github.com/GavinJoyce/embroider-spike/pull/19 @abhilashlr here is a working example of embroider and fastboot

1reaction
abhilashlrcommented, Jul 6, 2020

Sorry, this is a gotcha at the moment. We currently depend on a newer version of fastboot than any released version of ember-cli-fastboot uses.

If you’re using yarn you can use selective dependency resolution to get the newer fastboot directly like this:

https://github.com/embroider-build/embroider/blob/a4b7bb22438539ce218665df148c7fe62874a176/package.json#L36

Thanks for a temporary solution @ef4, and in case someone uses workspaces like me, you got to add this in the workspace package.json’s resolutions key. I kept trying within my ember app and it never worked 😆

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fastboot and embroider build failures - Build Issues - Ember.JS
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...
Read more >
@embroider/webpack | Yarn - Package Manager
This repo implements a new three-stage build system for Ember apps: The first stage achieves backward compatibility by building each classic Ember Addon...
Read more >
fastboot error no such file - XDA Forums
- Incompatible version of fastboot. - Incompatible image file format or corrupted image file. Newer versions of fastboot should detect the ...
Read more >
Developers - Embroider + Fastboot: Build not invoking `app-boot` in ...
Embroider + Fastboot: Build not invoking `app-boot` in contentFor hook. Causing Fastboot app to fail.
Read more >
ember-body-class - npm
Easily add CSS classes to the body, including route names and loading/error states.. Latest version: 3.0.0, last published: 4 months ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found