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.

I was trying out to see if Embroider did work with fastboot, but I had some issues.

Here is the error I’m getting:

Error: Couldn't find /var/folders/67/6jb5flcd6d30lkgvj0_92c_m0000gn/T/broccoli-1293OJSXVVXmzNOx/out-170-packager_runner_embroider_webpack/package.json. You may need to update your version of ember-cli-fastboot.
    at EmberApp.readPackageJSON (/Users/josemarluedke/code/tmp/my-embroider-test/node_modules/fastboot/src/ember-app.js:350:13)
    at new EmberApp (/Users/josemarluedke/code/tmp/my-embroider-test/node_modules/fastboot/src/ember-app.js:34:23)
    at FastBoot._buildEmberApp (/Users/josemarluedke/code/tmp/my-embroider-test/node_modules/fastboot/src/index.js:114:17)
    at new FastBoot (/Users/josemarluedke/code/tmp/my-embroider-test/node_modules/fastboot/src/index.js:52:10)
    at app.use (/Users/josemarluedke/code/tmp/my-embroider-test/node_modules/ember-cli-fastboot/index.js:319:29)
    at Layer.handle [as handle_request] (/Users/josemarluedke/code/tmp/my-embroider-test/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/josemarluedke/code/tmp/my-embroider-test/node_modules/express/lib/router/index.js:317:13)
    at /Users/josemarluedke/code/tmp/my-embroider-test/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/josemarluedke/code/tmp/my-embroider-test/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/josemarluedke/code/tmp/my-embroider-test/node_modules/express/lib/router/index.js:275:10)

Repo: https://github.com/josemarluedke/my-embroider-test/tree/fastboot

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ef4commented, Apr 26, 2019

I think this is because embroider isn’t running postprocessTree hooks. That is how ember-cli-fastboot adds package.json to dist.

There are various flavors of postprocessTree. In this case the one that matters is "all". The "all" hook is somewhat problematic. Most of the things people do in that hook are actively harmful under embroider (for example, trying to fingerprint assets and rewrite their URLs will break lazy loading. Fingerprinting is a concern of the stage3 packager, not something people should try to impose upon it from outside).

@rwjblue, you asked me about what fastboot can do to make compatibility easier. One idea is, can ember-cli-fastboot emit all the config files it needs via the public tree instead of using postprocessTree? There’s not really any postprocessing needed, it’s just merging in files.

0reactions
ef4commented, Nov 1, 2019

Is it accurate to say that pre/postprocessTree(‘all’) is only called on an App and never an Addon?

No. It’s (entirely?) addons that do it. They don’t do it arbitrarily deep down the dependency graph, but all your direct addons can do postprocessTree(‘all’)`.

The best place for that warning is probably here. It can be just like the one for treeFor.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flashing devices
You can flash a device when it's in the fastboot bootloader mode. ... Devices upgrading to Android 7.x or higher that don't support...
Read more >
fastboot/README.md
Fastboot. The fastboot protocol is a mechanism for communicating with bootloaders over USB or ethernet. It is designed to be very straightforward to ......
Read more >
Add Fastboot Support — Slim Bootloader 1.0 documentation
Add Fastboot Support¶. This page guides you to integrate an external fastboot executable in SBL. The steps described are also applicable to any...
Read more >
fastboot - Android Debug Bridge (ADB) Commands Manual
On devices that support snapshot-based updates, finish an in-progress update if it is in the "merging" phase. fastboot snapshot-update merge. Boot image.
Read more >
How to Use ADB and Fastboot on Android (And Why You ...
Learning to master ADB and Fastboot can make your Android experience a whole lot better. fastboot-android. If you've ever rooted your Android phone, ......
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