Questions tagged [ember-cli]

Node.js module which provides a command line interface (CLI) for developing Ember.js applications

-1
votes
3answers
36 views

Can i access ember service variables in my whole application?

I Created an ember service and i initialized its value now i updated that value in a controller. I want this updated variable in my complete application ? What should i supposed to do. Any help will ...
1
vote
1answer
29 views

set alias for `model` hook

HELP If there is a model hook in app/routes/post.js say model() { return this.store.query('post'); } in template the returned promised is accessed using {{#each model as |post|}} ... {{/each}}...
0
votes
1answer
27 views

Stack trace: Error: Assertion Failed: 'data-adapter' is not a recognized type

Ember data won't show on the inspector.The error is showing below. I am using module unification in new ember. module unification ember Can someone tell me how to fix it because I need to see data ...
0
votes
0answers
22 views

Upgrading Ember from 1.13 to 2.3 breaks fastboot why?

I've upgraded my ember app from 1.13 to 2.3 and installed ember-cli-fastboot addon. But after upgrading this plugin isn't not working, why? I created a new project with version 2.18 and repeated the ...
0
votes
1answer
35 views

How to access component property in Ember.computed.sort

In Ember 1.13 I have a component that uses Ember.computed.sort: export default Ember.Component.extend({ sortedItems: Ember.computed.sort("allItems", function(a, b) { //How to access ...
4
votes
3answers
51 views

Intellisense for Ember injected services

I am a bit frustrated that there doesn't seem any decent "Ember intellisense" available in any common IDE (like VS Code, Webstorm, Atom). By "intellisense" I mean that, as long as my Ember project is ...
0
votes
0answers
18 views

How do I debug a failing ember-cli build?

I have an oldish ember-cli project. It's Ember 3.5, but it came from 2.x initially (and has some bower components). It used to build and deploy fine. But now I started it from a clean computer. I ...
0
votes
0answers
7 views

How exclude a file from Ember build?

I'm 10 hours into this problem. I've tried everything explained on the web (including SO) and nothing works. They don't work because either they just don't, or they don't provide the crucial detail ...
1
vote
1answer
59 views

Combining two emberjs apps

I am currently using ember 1.13. I have two apps which use emberjs. Now I am thinking of integrating these two apps by creating a new route in the first app and display specific route of the second ...
2
votes
4answers
123 views

How can I add an external javascript tag to an Ember JS app without touching the index.html?

Is it possible to load an external javascript resource in Ember without touching index.html? If I could add to html, I would simply add the following and it works. <script type="text/...
1
vote
1answer
68 views

How can I resolve the defineProperty deprecation error?

I received an error called DEPRECATION: [DEPRECATED] computed property 'value' was not set on object via 'defineProperty' [deprecation id: ember-meta.descriptor-on-object] and I am really sure which ...
1
vote
1answer
28 views

Cannot Access Ember child route via url and redirects me to the parent route

I want to access a child route via url eg:https://my-app.com/dashboard/library. When i click this, Ember redirects me to https://my-app.com/dashboard and populates this route's model data correctly, ...
6
votes
2answers
62 views

using bootstrap with ember 3.8

We start with a new application, using Ember 3.8 and bootstrap/SASS. There seem to be two add-ins available which support bootstrap within Ember, ember-boostrap and ember-cli-bootrap-sassy. While ...
1
vote
2answers
31 views

Should I upgrade from LTS to another LTS ember version?

I've been trying to upgrade my ember app from 2.18 to 3.4.4 and I just want to know if I chose the correct ember version which is 3.4.4? Any response is much appreciated. Also what are the ...
0
votes
0answers
15 views

Failed to decode downloaded font - ember-cli (3.7.1)

I'm facing this font decoding issue after I deploy ember cli app to heroku. It works fine in my localhost. I'm using @font-face rule for custom font and ember addon for material-icons(ember-material-...
5
votes
1answer
76 views

Why use this.get('serviceName') instead of this.serviceName?

In Ember.JS, Is there a good reason to be doing this: import Service, { inject } from '@ember/service'; export default Service.extend({ ajax: inject(), getAll() { return this.get('ajax').request(...
0
votes
1answer
82 views

How do I upgrade ember-cli-babel?

The online NPM documentation does not explain how to upgrade ember-cli-babel. I tried following the accepted answer posted here Invalid Version: Ember-Cli-Babel, but that did not work. DEPRECATION: ...
1
vote
1answer
47 views

Ember.js each loop : compare current index data with previous index data

In ember.js each loop, How can I access the data of the previous index inside the current loop? {{#each coonfigData key="name" as |band index|}} {{#if band.min > band(index-1).min}} //compare ...
0
votes
1answer
38 views

Can Ember helpers be used as utilities?

I was going through the codebase of an old project that uses Ember-CLI 1.13 and found something strange. There are many helpers that are not directly used inside templates but are used in component ...
1
vote
0answers
29 views

How can I modify my Ember Addon build based on the template contents?

I'm working on the @fortAwesome/ember-fontawesome addon. I'd like to be able to find the icons that have been used in templates and include the necessary JS into the final build. Template: {{fa-icon ...
1
vote
1answer
34 views

Will my ember app work in IE browser if I update it from 2.18 to 3.4?

The current version of my ember app is 2.18.0 and the app is working to IE browser as well and if I upgrade it to 3.4 would it not run to IE? If not, what are the versions of IE that it won't run? Is ...
1
vote
0answers
40 views

CORS Error When Trying To Access Golang Backend With Ember Frontend

So here is my problem. I am writing a simple application that posts data to an API. Unfortunately I cannot get data to post. Every Time I try to post I get the following error: Access to ...
0
votes
1answer
62 views

Ember Each loop rerendering entire array of objects when the array is updated

I am using Ember 1.13.15. I have an array of objects (contains nested objects) which is iterated using each loop and is passed to a child component. //parent.hbs {{#each configData as |item index|}...
0
votes
3answers
49 views

how to dynamically change app.scss value in ember js

I have a situation where the api is providing me with a colour and the colour of some parts of the site should be based on the colour provided by the api, right now the value is hard coded in app....
0
votes
2answers
41 views

EmberJS 2.15.1 Could not find module `fullcalendar`

So I've recently updated my app to Ember 2.15.1 and I'm attempting to switch everything over to NPM from Bower. I have been playing around trying to get fullcalendar to cooperate, but have not had ...
0
votes
1answer
30 views

how to access ENV variables in index.html in ember.js

I am using ember.js, there is a requirement for us where we have to show a script tag(index.html file) only in production and not in development. Is there a way to achieve this?
0
votes
0answers
54 views

GET https://app-name.local/livereload.js net::ERR_ABORTED 404 (Not Found)

I'm serving my local ember app in https. Followed the example which was given in https://github.com/ember-cli/ember-cli-inject-live-reload. It was working fine in ember 2.18.0 .ember-cli: { ... "...
0
votes
1answer
50 views

Building a mobile hybrid app with Ember.js

For the last 6 years I have been developing with Ember.js framework. Now I need to develop a mobile app, both to Android and iOS, what are my options and most recent technologies to develop it using ...
2
votes
1answer
33 views

How to write a CSS Conditional in ember for class attributes?

am stuck on a problem and haven't been able to find a resource that explains this. Sorry if this is obvious but I am an ember newbie. I want to be able to write an if equals conditional for a table. ...
0
votes
1answer
40 views

Have Error while try to Update Ember 2.14.2 to Ember 2.18.2

Anyone please help me with Ember update.My current code base was 2.14.2 and I try to update 2.18.2.And I got the below error. Could not start watchman Visit https://ember-cli.com/user-guide/#watchman ...
0
votes
1answer
69 views

Ember - Compile Error: bs-form-element is not a helper

Recently i update my existing ember ember project to 2.10.0 version after update i try to run the project but it shows some compile error uncaught Error: Compile Error: bs-form-element is not a ...
0
votes
1answer
38 views

Ember.Computed is not a function

I'm trying to setup simple application with Ember using ember-chart: https://www.npmjs.com/package/ember-cli-chart I have my charts.hbs file: <div class="container-fluid"> <div class="...
0
votes
2answers
44 views

ember-cli-eslint, ember-cli-stylelint to run automatically only if desired

I understand that the purpose of ember-cli-eslint, ember-cli-stylelint to run automatically. I am wondering if there is a way to control this behavior. Like, run ember-cli-eslint, ember-cli-...
1
vote
1answer
33 views

ember data different models for same endpoint

I have an API that doesn't return JSON data in a format that Ember-Data expects. Especially when getting a list of resources versus a single resource. For example, GET /api/widgets/{id} Should ...
0
votes
2answers
73 views

Why do I get “Ajax authorization fails” in my tests

I am following the ember tutorials, and specifically I'm on services. I am 99.9% certain that I have the exact code in place -- I am copying by hand, because I believe that helps me absorb it more ...
0
votes
0answers
19 views

Can't import styles from add-on after migrating to module unification structure in an ember app

I used the ember-module-migrator to migrate an Ember app to the new file structure and followed the instructions here: https://github.com/emberjs/ember.js/issues/16373.. Now when running the tests or ...
1
vote
1answer
29 views

How do I make a file accessible at the top level root?

How do I make a file accessible at the top level root? Basically, I want to be able to access foo.txt at https://www.sitename.com/foo.txt
1
vote
1answer
106 views

“DEPRECATION: Upgrade ember-cli-inject-live-reload version to 1.10.0 or above” warning will not go away after upgrade

I am new to working on an Ember front-end site and just recently received a warning stating the following: DEPRECATION: Upgrade ember-cli-inject-live-reload version to 1.10.0 or above I went ...
1
vote
1answer
81 views

how to configure ember-cli-babel based on environment in ember-cli-build.js?

We are migrating our site to ember, so as of now we use ember as well as JSPs. Since in production, I have a polyfill loaded when my site loads, I want to use babel polyfill inside the ember app only ...
3
votes
1answer
67 views

Ember reloading belongsTo relationship

I have a belongsTo relationship defined in the model, e.g. gallery: DS.belongsTo('store-gallery', { async: true }), Later on, I'll create a new object and assign it to the relationship if it is null:...
-2
votes
1answer
18 views

setupController is not working for hasMany data

here is my code. when a user has only 1 property code is working fine but in case of multiple properties. setupController and aftercontroller is not working model: -> return @get('session....
4
votes
1answer
44 views

Is there any way to resolve Ember routes, controllers, components from custom directory?

Is there any way to resolve Ember routes, controllers, components etc from custom directory and fallback to default app directory when not found?
0
votes
1answer
44 views

Separate Ember Addon from vendor.js file to a separate file

I'm using a "core"-addon which contains logic that is used in multiple "boilerplate" - ember applications, when I build a boilerplate-application, the addon code is added to the "vendor.js" file found ...
0
votes
1answer
41 views

Emberjs dynamic inject from mixin

I have a lot of controllers using difference services,where I should extend one mixin. In mixin, based on the controller's call I should inject difference service. Is it really do ? If yes, I open to ...
2
votes
1answer
103 views

Ember-cli-build, exclude components ember addon

I'm using a "core" ember addon in a boilerplate, with npm link core-addon This addon contains generic components, helpers, routes... Is there a way to exclude some of these components in the ...
0
votes
1answer
25 views

EmberJS: Some errors not thrown in production

Recently I encountered a scenario where an error (Assertion Failed: calling set on destroyed object) was thrown while running my app in development mode, but the same error wasn't thrown in production....
0
votes
1answer
25 views

Ember data model explicit inverse relationships

I’m struggling with explicit inverse relationships: https://guides.emberjs.com/release/models/relationships/#toc_explicit-inverses. If 4 instances of the blog-post model can be associated with a ...
0
votes
1answer
25 views

How can I see what request is done by Ember FastBoot?

I've installed ember-cli-fastboot and a certain path throws an Error: The adapter operation was aborted server-side (i.e. in the terminal). Can I output all requests FastBoot does, so I can see what ...
0
votes
1answer
24 views

Live actions in Ember

How can we implement live actions in ember without reload or pressing an action button? for example, if I'm filling a form to change the password, In the confirm password input, I need to check the ...
1
vote
0answers
72 views

How do I minify CSS classnames with Ember CLI?

I looked through the docs on how to do this but nothing turned up. There's this: The compiled css-files are minified by broccoli-clean-css or broccoli-csso, if it is installed locally So I'm ...

http://mssss.yulina-kosm.ru