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.

Fast boot and upstream bower dependencies

See original GitHub issue

Question

Are fastboot ember apps only able to use ember addons / components that are “fastboot ready”; in other words, do all ember addons have to custom support fastboot, or is there a way to expose global dependencies from the app using the addon?

Example

I am using ember-charts which depends on d3 and lodash via bower. Everything works great without fastboot, but once I try to serve via fastboot I get Reference Errors around d3.

I attempted to whitelist via fastbootDependencies and even installed d3 via npm to no avail.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
jasonmitcommented, Apr 8, 2016

I understand the issue around importing modules that depend on browser APIs, but if these are bower deps you can prevent them from being included in the fastboot build by guarding around app.import.

Back to shimming, I’d just worry about the cost of having to maintain shims for all the popular current and future libs.

0reactions
tomdalecommented, Jun 24, 2016

@ewoutp Oops, sorry I missed this. See https://github.com/ember-fastboot/ember-cli-fastboot/issues/134#issuecomment-197540068 for how to selectively import addons.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ember Fastboot - Bootstrap's Javascript requires jQuery?
1 Answer 1 · ember-cli-fastboot #133 "Fast boot and upstream bower dependencies" · ember-cli-fastboot #98 "The Road to 1.0".
Read more >
Day 1: Bower -- Manage Your Client Side Dependencies
Bower is a package manager for client side technologies. It can be used to search , install, uninstall web assets like JavaScript, HTML,...
Read more >
Bower — a package manager for the web
This is known as a flat dependency graph and it helps reduce page load. §Install Bower. Bower is a command line utility. Install...
Read more >
Ember Fastboot - Bootstrap's Javascript requires jQuery?
Coding example for the question Ember Fastboot - Bootstrap's Javascript requires ... ember-cli-fastboot #133 "Fast boot and upstream bower dependencies" ...
Read more >
Combining Spring Boot with Bower dependencies
In this post I'll describe a technique we recently employed to split a site in half, then re-assemble for deployment. We'll start with...
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