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.

Note from @alexlafroscia: Basic support has been added in #75, but I want to keep this issue open until we can add Fastboot testing to our automated testing setup. Until then, things should work but we can’t be sure, please make a separate issue with any problems you run into!

Note from @alexlafroscia (10/12/2016): There is actually ways to test Fastboot now, so we have the tools to add that and close this issue:

  • Add tests that verify ember-ajax works in Fastboot
  • Add test for header parsing (#162)

An addon to help with running the tests in Fastboot can be found here. Example usage can be found here.

Versions:

  • node 5.7.0
  • ember-cli 2.4.2
  • ember-ajax 0.7.1 or 2.0.0-beta.2 (or the current master branch)

Steps to reproduce:

$ ember new fastboot-test
$ ember install ember-cli-fastboot
$ ember install ember-ajax@2.0.0-beta.2

Inject and get the ajax service somewhere. The following error gets printed to the console once the browser enters a route with the ajax service in use: (NOTE: The error triggers as soon as I try call .get('ajax') to get the service.)

$ ember fastboot --serve-assets
version: 2.4.2
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
Built project successfully. Stored in "fastboot-dist".
Installing FastBoot npm dependencies
DEBUG: -------------------------------
DEBUG: Ember : 2.4.1
DEBUG: -------------------------------
Ember FastBoot running at http://[::]:3000
Error: Could not find module `url` imported from `(require)`
    at missingModule (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:164:1)
    at findModule (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:179:1)
    at requireModule (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:168:1)
    at Module.callback (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/ember-ajax/utils/url-helpers.js:30:1)
    at Module.exports (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:83:1)
    at Module.build (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:133:1)
    at findModule (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:181:1)
    at Module.reify (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:115:1)
    at Module.build (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:133:1)
    at findModule (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:181:1)
    at Module.reify (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:115:1)
    at Module.build (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:133:1)
    at findModule (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:181:1)
    at Module.reify (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:115:1)
    at Module.build (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:133:1)
    at findModule (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:181:1)
    at requireModule (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/vendor/loader/loader.js:168:1)
    at [object Object]._extractDefaultExport (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/ember-resolver/resolver.js:346:1)
    at [object Object].resolveOther (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/ember-resolver/resolver.js:81:1)
    at [object Object].superWrapper (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:23203:1)
    at [object Object].exports.default._emberRuntimeSystemObject.default.extend.resolve (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:5828:1)
    at resolve (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:2385:1)
    at Object.Registry.resolve (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:1898:1)
    at Object.Registry.resolve (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:1902:1)
    at has (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:2402:1)
    at Object.Registry.has (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:1988:1)
    at Object.Registry.validateInjections (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:2290:1)
    at instantiate (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:1474:1)
    at lookup (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:1330:1)
    at Object.Container.lookup (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:1257:1)
    at [object Object].lookup (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:33427:1)
    at /home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:28240:1
    at Object.exports.default._routerUtils.subclass.applyToState (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:52641:1)
    at Object.getTransitionByIntent (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:51642:1)
    at Object.Router.transitionByIntent (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:51754:1)
    at doTransition (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:52326:1)
    at Object.Router.handleURL (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:51796:1)
    at [object Object]._emberRuntimeSystemObject.default.extend._doURLTransition (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:28010:1)
    at [object Object]._emberRuntimeSystemObject.default.extend.handleURL (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:28006:1)
    at [object Object].ApplicationInstance.reopen.visit (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:3997:1)
    at tryCatch (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:53542:1)
    at invokeCallback (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:53557:1)
    at publish (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:53525:1)
    at /home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:32081:1
    at Queue.invoke (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:333:1)
    at Object.Queue.flush (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:397:1)
    at Object.DeferredActionQueues.flush (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:205:1)
    at Object.Backburner.end (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:560:1)
    at [object Object]._onTimeout (/home/dsenn/gitty/github/topaxi.ch/fastboot-dist/assets/bower_components/ember/ember.debug.js:1126:1)
2016-03-08T17:08:35.358Z 500 Unknown Error: Error: Could not find module `url` imported from `(require)` 277ms

I tried to fix this by adding

"fastbootDependencies": [ "url" ]

to my package.json without success.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
alexlafrosciacommented, Mar 8, 2016

Thanks for reporting. This might take some time to address, but supporting Fastboot is important to us and is definitely something we’ll be working on in the very near future.

0reactions
alexlafrosciacommented, May 29, 2016

Yeah, I suppose this should have been closed by #75. We claim “basic”, almost “experimental” support at this point because we have no way to actually run the automated testing against the Fastboot environment to ensure that things work exactly the way they should. I’m hesitant to claim official support at this point without having tests run against Fastboot as part of our CI.

Edit: I added a note to the issue itself to link to that PR and explain the current Fastboot situation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Flashing devices | Android Open Source Project
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 >
Add Fastboot Support — Slim Bootloader 1.0 documentation
Fastboot protocol allows communication between host and device bootloader via USB or Ethernet. Fastboot image can be loaded as a boot option configured...
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