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.

There was an error trying to run your application in FastBoot. (vanilla install)

See original GitHub issue

The following error pops up on a fresh install of ember + fastboot. I assume things aren’t supposed to explode when doing simple text changes while fastboot is running.

There was an error trying to run your application in FastBoot.

This is usually caused by either your application code or an addon trying to access an API that isn't available in Node.js.
Based on the stack trace, it looks like the exception was generated in node_modules/ember-cli-fastboot/node_modules/fastboot-express-middleware/node_modules/fastboot/src/ember-app.js on line 245.
The exception is probably coming from your app. Look at this file and line number to determine what is triggering the exception.

The full stack trace is:

Couldn't find /Users/bsilva/ember/fastsample/dist/package.json. You may need to update your version of ember-cli-fastboot.
Error: Couldn't find /Users/bsilva/ember/fastsample/dist/package.json. You may need to update your version of ember-cli-fastboot.
    at EmberApp.readPackageJSON (/Users/bsilva/ember/fastsample/node_modules/ember-cli-fastboot/node_modules/fastboot-express-middleware/node_modules/fastboot/src/ember-app.js:245:13)
    at new EmberApp (/Users/bsilva/ember/fastsample/node_modules/ember-cli-fastboot/node_modules/fastboot-express-middleware/node_modules/fastboot/src/ember-app.js:32:23)
    at FastBoot._buildEmberApp (/Users/bsilva/ember/fastsample/node_modules/ember-cli-fastboot/node_modules/fastboot-express-middleware/node_modules/fastboot/src/index.js:102:17)
    at new FastBoot (/Users/bsilva/ember/fastsample/node_modules/ember-cli-fastboot/node_modules/fastboot-express-middleware/node_modules/fastboot/src/index.js:47:10)
    at fastbootExpressMiddleware (/Users/bsilva/ember/fastsample/node_modules/ember-cli-fastboot/node_modules/fastboot-express-middleware/index.js:24:16)
    at /Users/bsilva/ember/fastsample/node_modules/ember-cli-fastboot/lib/tasks/fastboot-server.js:33:71
    at tryCatch (/Users/bsilva/ember/fastsample/node_modules/ember-cli-fastboot/node_modules/rsvp/dist/lib/rsvp/-internal.js:215:12)
    at invokeCallback (/Users/bsilva/ember/fastsample/node_modules/ember-cli-fastboot/node_modules/rsvp/dist/lib/rsvp/-internal.js:230:13)
    at publish (/Users/bsilva/ember/fastsample/node_modules/ember-cli-fastboot/node_modules/rsvp/dist/lib/rsvp/-internal.js:198:7)
    at flush (/Users/bsilva/ember/fastsample/node_modules/ember-cli-fastboot/node_modules/rsvp/dist/lib/rsvp/asap.js:85:5)

Dependencies image image

Reproduce

  1. ember new [projectname]
  2. ember install ember-cli-fastboot
  3. ember generate route index
  4. add a string above {{outlet}} in the generated index.hbs
  5. ember fastboot --serve-assets
  6. verify everything is work on localhost:3000. Should be good.
  7. add another part to the string and hit save.
  8. Explosions

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kratiahujacommented, May 21, 2017

Closing this. ember s should resolve the watch issue.

1reaction
Blackening999commented, Nov 22, 2016

@danmcclain

Vanilla install. Ember version: latest release Ember data version: latest release Fastboot: latest-release (.beta-13)

Node: v5.3.0, also tried on v4.6.2

There was an error trying to run your application in FastBoot.

This is usually caused by either your application code or an addon trying to access an API that isn't available in Node.js.
Based on the stack trace, it looks like the exception was generated in vm.js on line 53.
The exception is probably coming from your app. Look at this file and line number to determine what is triggering the exception.

The full stack trace is:

Unexpected token {
SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/black/Work/My_Projects/project-fastboot/node_modules/fastboot/src/ember-app.js:12:22)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Stuck in fastboot mode | XDA Forums
It works fine in the beginning, but after the fastboot reboot fastboot step I start getting: FAILED: Flashing is not allowed for Critical ......
Read more >
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 >
What To Do if Your Amazon Fire tablet is Stuck in Fastboot Mode
There are two main reasons for an Amazon Fire tablet being stuck in Fastboot mode; either there's a software issue on a vanilla...
Read more >
Fixing the Fastboot Error "No Such File or Directory" - YouTube
Join the Daily Android News Discussionshttps://www.youtube.com/channel/UCnowc_KHgjVNj3Y-E-oQ8aw/joinInstalling TWRP onto a smartphone or ...
Read more >
Untitled
Simply run the following commands in a terminal window to install them from ... i tried unlocking by sending a command "fastboot oem...
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