Beginner question about installing and utilizing npm packages with ember!


#1

Howdy all,

I’m a beginner with Ember, and have had some recent trouble trying to install and use this carousel package:

I’ve installed it in my app folder and the project folder, but when I try to use it with the code: {{#slick-carousel}}{{/slick-carousel}} I receive an EmberError with the message: “Assertion Failed: A component or helper named “slick-carousel” could not be found”

It is installed in bower components, is there something else I need to do to have ember recognize this component?

Thanks!


#2

Hey @rchen3592 from a cursory check it looks like that’s a pretty old addon and the source repo isn’t even available so it’s hard to tell what the addon code looks like. NPM said the publish date was 2 years ago, which means it’s going to be pretty outdated ember-wise, and if it uses bower that could also be problematic (Ember is working towards dumping any dependence on bower so modern addons should use only npm). If the source was available you could look into it and even create your own fork, but it’s not so my recommendation would unfortunately be to look for a more modern maintained addon. That’s one thing you have to be careful of when choosing ember addons. Ember Observer can be a huge help because it scores addons based on a number of factors, so if you only use addons with “decent” scores you’ll usually be pretty safe in terms of upgrades or deprecations.

Anyway, sorry that’s probably not the news you wanted but I’m not sure what else to suggest with this addon specifically if the code isn’t even available.