Questions tagged [ember.js]

Ember.js is a component-service application framework written in JavaScript. Consider making your question easier to answer by using the preconfigured templates mentioned in this tag's wiki. (Always specify version of ember used when describing your issue)

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

How to convert array of object(hasMany relationship data) to array of id?

I wanted to get data and show it in UI. Here's how i write to get the "movies" data. let movies= yield this.store.findAll('movie'); And I log the "movies". As the picture below ...
0
votes
0answers
19 views

malihu jquery custom scrollbar plugin error in crossdomain loading

I am using malihu jquery custom scrollbar plugin version 3.1.5 in my tomcat application, build using ember js runing in xxx.com. While loading that xxx.com application in the iframe of another ...
2
votes
1answer
25 views

How do I pass an object to a component?

This question was asked in the Ember Discord. Is there a way to pass an object into a component <SomeComponent object={color: green} />
0
votes
0answers
16 views

Trying to Customize the ApolloService to enable Authorization in Ember 3.28. Any special configuration I need to plugin the apollo.js to be my config

Ember-Octane 3.28 Configured the enviroment.js file with the graphql endpoint, My apollo.js file in the service folder looks like import ApolloService from 'ember-apollo-client/services/apollo'; ...
0
votes
1answer
22 views

Ember mismatch names in index.js and package.json

i have two different names in my package.json and index.js which i cannot change on both places. I am getting this error. ember-cli: Your names in package.json and index.js should match. The addon in ...
0
votes
1answer
17 views

Connecting ember js application with react host : microfrontend

I was trying to connect different frontend tech together in a React host using microfrontend. I managed to connect react, vue, VanillaJS application to the React host, but i am not able to wrap my ...
0
votes
0answers
55 views

Building Ember app gives me error, Cannot read property 'pkg' of null

I was trying to compile a website frontend from 2015 that utilizes an old version of ember.js and node.js. The instructions state to run make build, which in turn would run ember build dist. Though ...
0
votes
0answers
33 views

solution for selecting frameworks and tools for managing photo with zoom and selection

I want to develop a software in which I need to maneuver on the photos, Features such as Drag and zoom and ..., for example photos related to the rocks of a mine (like the image below) where the ...
0
votes
1answer
23 views

Ember test launch in CI/dev environment

I have this in my testem.js launch_in_ci: ['Chromium'], launch_in_dev: ['Chrome'], Is there any way to run ember test and specify CI/dev environment? I know I can use this solution but this looks ...
0
votes
1answer
20 views

Ember: Selecting the object form array using index in #each loop

Trying to use the index value in a loop in EmberJs Consider the following scenario, {{#each array1 as |element index|}} <Component1 @prop={{element}} @prop2={{@array2[index]}} /> {{/each}} I ...
0
votes
0answers
17 views

Ember not population model even after successful API call

My route.js export default Route.extend(ResetScrollMixin, { model(params, { queryParams }) { return hash({ ruleSetVersions: this.store.queryRecord('rule-set-versions', { ...
0
votes
1answer
18 views

Ember 1.13.x and newer version relation with jquery

Does Ember require jquery to be imported in older or newer versions ? if yes, will older ember support if newer version of jquery.js file is included ? any docs to refer ? what does Ember.$ mean ? ...
-1
votes
1answer
128 views

Frontend framework change [closed]

We are a small company, using emberjs as the main frontend framework for our projects. The frontend architect sticks to it like liquid glue sticks to paper, because he doesn't know any other ...
0
votes
1answer
46 views

Passing variable value from js file to hbs component

Hi I have a Global variable as in js file, I want to retrieve value of that Variable in hbs file export default () => { selectedViolationTypeId: 0, addProgram(program) { this....
0
votes
1answer
28 views

Ember Octane - Display contents of a Tracked Array from Controller in Template?

I am trying to render access the contents of an array stored in the controller from within the template. The array starts empty but objects are added to it using a method in the controller: import ...
1
vote
1answer
23 views

How do I customize the ember-bootstrap form.element so that the input uses a specific column size?

I'm using ember-bootstrap and the following element: <form.element @controlType="text" @label="First Name:" @property="firstName" /> which produces the following ...
0
votes
0answers
11 views

Slick Slider Not Work When Array Update In Ember js

When first render component slick slider work well but when i update array data by action then break slick slider view.Please Help me.I am using Ember Cli version 3.12.Here Is My Component Code: ...
0
votes
0answers
39 views

caniuse-lite is outdated will not go away after updating browserlist

I'm working on fixing build warnings in my Ember.js application currently, and one I get is this [Babel: @ember/test-helpers > applyPatches]Browserslist: caniuse-lite is outdated. Please run: npx ...
0
votes
0answers
27 views

How to install ember-cli version 1.13.11 without global?

I just install nvm software and I will run nvm install 4.0.0. The node will download and npm also download and install it automatically. Next, I will run nvm use 4.0.0 set-up will set it. now I see my ...
0
votes
1answer
28 views

How can I use ember-concurrency with a callback function?

I'd like to use ember-concurrency to handle batch validation of a collection of addresses. The address validation is done by a third party API that calls a server-side function that then 'calls back' ...
0
votes
0answers
21 views

How to install ember-cli version 1.13.11 in windows 10

I am trying to install ember-cli version 1.13.11 using node version is 4.0.0 and npm version is 2.14.2 . i will run all comments in admin. first i will install npm install -g ember-cli@1.13.11 and ...
0
votes
1answer
22 views

How to use tabulator with ember?

I want to use http://tabulator.info/ with ember. I don't understand the documentation nor can I find any guides on configuration for ember. How can I start by creating a simple table?
0
votes
1answer
20 views

How do I access ENV from config/environment in an addon?

This is a question that was asked by @dbendaou over on the Ember Discord What is the best way to access ENV from config/envirnoment in an addon? I was thinking about getOwner(this).lookup('config:...
1
vote
1answer
37 views

Emberjs Model from route returning undefined in controller

I have a strange behavior with my Ember app. I can't make any sense out of it. Basically I'm using Ember octane and I wanted to access my model from my route to my controller . This is my route import ...
0
votes
1answer
59 views

Ember Octane, Tracked property not rerendering template

Coming from a React background, I'm having issues understanding EmberJs "Tracked" concept. On paper it shouldn't be different from "React state". So what I have understood is that ...
0
votes
1answer
25 views

Ember - How to break the build if test coverage fails minimum threshold?

I want to break the build if coverage drops below certain percentage. Currently test runs and coverage is generated if I run below command. COVERAGE=true ember test but I don't see a way to break the ...
0
votes
0answers
27 views

EmberJS Data Assert in setRecordDataFor "Illegal set of identifier"

Using 3.28 I am hitting an assert deep inside Ember Data when retrieving a relationship on one of my models. I can run the following query just fine: return this.store.findRecord('project', project_id)...
0
votes
0answers
13 views

Ember-cli-build do not inject app.css into the compiled app

I just migrated my app from ember 2.18 to 3.4. I have a css file at app/styles/app.css Here is my ember-cli-build.js 'use strict'; const EmberApp = require('ember-cli/lib/broccoli/ember-app'); ...
0
votes
0answers
26 views

Eslint disable for a specific line pattern

Example, //test is a pattern used in one of my code processing to ignore some testing. And we matched exactly //test to exclude the processing. But when we apply Esline auto fix, //test automatically ...
0
votes
1answer
29 views

How do you render and filter over a collection of data from an @argument?

This question comes from our Ember Discord I have something like this {{#each @data as |project|}} <ItemList @categories={{project.category}}/> {{/each}} I am calling action somewhere else, ...
0
votes
0answers
18 views

Could not find module ember-routing/system/route

error while upgrading from 2.18 to 3.4 error while upgrading ember-CLI version from 2.18 to 3.4
0
votes
0answers
59 views

Check if value is false in handlebar helper

I have created a handlebar helper which gives true or false values. How can I check if the value is false and render HTML. I tried using unless but it's not working. I don't want to give any else ...
0
votes
1answer
29 views

Ember.js Creating a new route in ember.js always lead to default index.html file

I am new at learning ember.js I have followed some tutorials but I don't know why It doesn't work for me. What I would like is to create a new route with games: http://localhost:4200/jeux so I have ...
0
votes
1answer
36 views

braintree hosted payment fields client undefined Ember 3.25

Ember and Braintree Hosted Fields are not a good mix so far, Braintree Support are out of ideas on this one. When the form renders on the page it calls the action to create the client. The client is ...
2
votes
2answers
31 views

Add Extra Actions to LinkTo in Octane

I have a dropdown menu with links, when the links are clicked I'd like the menu to close. Something like (a11y/i18n truncated): <ul class="menu"> <li> <LinkTo @...
1
vote
0answers
19 views

Data loading issues in Ember 2.17

In ember 2.17 I have the following model : import DS from 'ember-data'; export default DS.Model.extend({ sharing_start:DS.attr('date'), owner: DS.belongsTo('shop'), deleted:DS.attr('boolean'), ...
0
votes
1answer
18 views

Emberjs, inside Controller call this.transitionToRoute('index');

error: function (jqXHR, exception) { console.log('Error occured!'); this.transitionToRoute('main'); }, Error: Uncaught TypeError: this.transitionToRoute is not a function
0
votes
1answer
26 views

How to call a route function in Ember js controller function test?

I have an ember js controller function onRefreshClicked which call a function inside the route refreshData. I would like to run a unit/integration test for this controller's function, but then it ...
0
votes
0answers
21 views

memory leak issues after upgrading ember cli from 3.4.3. to 3.24.0

We are facing an issue on JS heap size grows substantially over time, indicating a memory leak after ember upgrade to 3.24.0, DOM nodes also increase seemingly without bound. Over time, our test cases ...
0
votes
1answer
31 views

How to pass parameters to an ember component?

I'm still new in ember js and currently using ember version 3.2.6. I cannot seem to pass parameters to an ember component, what did I missed? app/templates/application.hbs <UserCard @userName='...
0
votes
0answers
36 views

When trying to authenticate, doorkeeper returns a 401 error "Client authentication failed due to unknown client, no client authentication included..."

So, I'm building an application using Rails for the backend and Ember.JS for one of the clients. I used CodingItWrong's apiup and emberup to generate project directories with some stuff pre-installed. ...
0
votes
0answers
28 views

assign Ember component variable with a Map

I have an Ember Component, Inside it, I declared a variable and after that I put a map inside the variable like this: const SubscriptionForm = Ember.Component.extend({ messagesFilter: Ember.Map....
0
votes
0answers
74 views

Cannot read property 'type' of undefined ember and firebase

I am trying to retrieve data from my firestore using ember.js and emberfire. i have a simple movie database. All that is in it right now is 1 document but for some reason when i try and retrieve the ...
0
votes
1answer
47 views

How to get Ember to detect a checkbox on change along with a glimmer tracked?

In ember js version 3.2.6, how do we get a checkbox to do extra logic on value changed? Example, I have a checkbox (a toggle true/false) for updateServer. The existing code is using a glimmer @tracked ...
0
votes
1answer
92 views

EmberJS: Cannot read property '_application' of undefined

I'm working through the emberJS tutorial and every time I update the code it crashes with the following error: Uncaught TypeError: Cannot read property '_application' of undefined at appStarted (&...
0
votes
1answer
23 views

How to access in `this.owner` as a property in Ember js test?

I added an ember adapter with some extra logic, then I would like to test that logic in ember test. In the test file, I see this line repeated multiple times let adapter = this.owner.lookup('adapter:...
0
votes
1answer
34 views

How to get cookies (basically I need jwt token) in Ember.js which was set in Django?

Django Rest Framework class LoginView(APIView): password = request.data['password'] user = User.objects.filter(email=request.data['email']).first() if user is None: ...
2
votes
1answer
46 views

Babel deoptimises styling of big files in ember.js app

I have an ember.js app with a big file that started to have this problem: [Babel: notes > applyPatches][BABEL] Note: The code generator has deoptimised the styling of /home/user/code/notes-...
1
vote
1answer
29 views

What is the best way to mock ember services that use ember-ajax in ember-cli-storybook to post and fetch data?

I'm using Ember CLI Storybook to create a story of a component than internally relies upon services that communicate to the internet, to fetch and post information to the backend. The way I'm doing ...
0
votes
0answers
29 views

Ember-qunit Unit test failed with Global error Ajax aborted

Does anyone meet this issue before? I am running a unit test for ember-qunit from my local, get this global error, and the Ajax was aborted. Thanks! ok 1 Chrome 92.0 - [1 ms] - ESLint | app: services/...

1
2 3 4 5
477