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)
ember.js
23,981
questions
0
votes
2
answers
31
views
Injecting store brings "Cannot read properties of undefined" on ver5.7/5.3 with Typescript
I created services/store.js with default export, then I added "@service store;" in route. Right at that line the following error occurs:
TypeError: Cannot read properties of undefined (...
1
vote
1
answer
27
views
Inherit session token between 2 apps as long as one of them has been signed in Ember.js
I have 3 web apps written in ember.js /appA, /appB and /AppC in the same domain and they connect to the same api with a token.
I have this configuration:
// under app/session-stores/application.js
...
0
votes
0
answers
35
views
JWT authentication out-of-the-box solution for typed Ember?
Is there any quick and simple solution to provide JWT token authentication for Ember with Typescript enabled? Although this issue sounds like quite a routine, most modules and documentations refer to ~...
1
vote
1
answer
16
views
Ember.js 5.4 how to update component variable when session store is updated
Ember.js Octane and JavaScript (not TS)
I have a service to access the session store. When I add or remove a specific key, I want my top level component to toggle visibility for the nav-bar. I have ...
0
votes
1
answer
26
views
Ember.js component button may have one of a fixed listed of values, how to make it use minimum width for longest string?
Single button, it may display the text "Show", or "Hide".
Toggling between show and hide causes the width of the button to change.
I want the button to take up as much width as it ...
0
votes
1
answer
45
views
How to use frontend app within virtual host proxypass?
I am using docker with three containers - backend/frontend/admin. I would like to use such proxy pass to navigate either to admin page or frontend -
<VirtualHost *:80>
ServerName cookie.com
...
0
votes
0
answers
25
views
Ember Js app Cannot find module 'exists-sync'
I have an ember app on windows. it was working fine but next time when I open the app and tried to run the ember server it showns below error:-
Cannot find module 'exists-sync'
Require stack:
C:\...
0
votes
1
answer
45
views
Ember.js did-update function not tirggering
Ember 5.x
I have a parent component, Cases, and two child components. The CaseList has many items and the user can select one. This works. And the onCaseSelect is called. I want to have the NavBar see ...
0
votes
0
answers
28
views
How to re render component when the argument changes from the table component in Ember.js?
Im a beginner in Ember.js framework, and Im having trouble updating a component from another one.
I have this table component with the checkbox rows, and everytime the number of checked rows its ...
1
vote
1
answer
35
views
Uncaught Error: Could not find module `@ember/application` imported from `web-app/app`
Why am I encountering the error 'Uncaught Error: Could not find module @ember/application ' when trying to import it from 'web-app/app' in my Ember.js project?
Specs:
npm: 6.14.5
node: v14.4.0
ember-...
0
votes
0
answers
14
views
How do i create a custom adapter method?
What I want is to make a specific request to my backend and get back a list of models but it is not exactly a findAll/query call as I require an id (the url would be in the format v1/personType/{id}) ...
0
votes
2
answers
73
views
Node v20.10.0 is not tested against Ember CLI on your platform
I'm getting an error when I try to init a new ember project.
I just installed ember using this command: npm install -g ember-cli
then I ran: ember init to create my project, but it throws the ...
1
vote
0
answers
39
views
Missing Resource Type: received resource data with a type 'events' but no schema could be found with that name
I have a basic Rails 7 application that uses the jsonapi-resources gem. On the Rails side of the application, I implemented a simple structure of two resources - events and event_categories. They are ...
1
vote
0
answers
32
views
How to define an Observer in an Ember Octane model?
After being a long-term Ember 2.x user on a long-neglected project, I'm going through the process of updating it to a more modern version of Ember; in this case 4.12. I'm getting hung up on one of the ...
1
vote
1
answer
52
views
unshiftObject method is not working in ember
I have the array of Objects and want to concat only the list property of all objects and create a new array. So I have a "combinedList" getter in the below code to combine the list if array ...
1
vote
1
answer
76
views
Ember 4.x (Octane) - replacement for Observers?
I am nearly done upgrading a very old Ember.js project from 2.13 all the way up to the latest LTS release, 4.12. Along the way I've been coming to grips with the changes that the Octane release ...
0
votes
1
answer
38
views
ember js - service usage to show data
I am new to ember js and trying to write my first app...
I have :
service app/service/event_handler.js
import Service from '@ember/service';
export default class EventHandlerService extends Service {
...
1
vote
1
answer
25
views
How to transfer an object to an component in ember.js
Ember.js is completely new to me. (Current version 5.4)
I would like to build a small WebUI. The login and the menu navigation work great. But I have problems with the loop and visualizing information ...
0
votes
1
answer
16
views
observe json object changes in emberjs template
How to observe json object changes in ember template, here's my test code, I expect to show jsonChange button after I click updateJson, but it didn't
test.hbs
<button {{on "click" this....
0
votes
1
answer
36
views
Hot to scroll to window-top on route load in Emberjs 5.4
In Ember 5.4, when a new route is loaded, and the last view was scrolled, the scroll position remains. I want it to scroll to top of the window instantly if the url/route changed.
I made it work with ...
0
votes
1
answer
69
views
Why does ember data store share tokens between 2 web apps my domain?
0
I have 2 differents applications in ember.js both connect to the same api: "host1:3000/appA" and "host2:3001/appB". I use nginx so that the client can access appA and appB ...
0
votes
1
answer
19
views
how to get the previous routename in ember 2.16 to used in back button
i have a analytic route in ember this can be accessed from two routes (example user page and profile page) the below code is used to redirect to the analytic route
{{#link-to 'settings.analytic'}}{{...
0
votes
1
answer
62
views
Ember-cli not using global version
This might actually more npm/node than just an EmberJS question.
Simply speaking I ran npm install -g ember-cli. However, when I check the version using ember --version, it shows me
ember-cli: 3.10.1
...
0
votes
1
answer
35
views
Ember Buffer Keyword
The following Ember code returns "<" symbol.
{{{get buffer.buffer.[0]}}}
Can someone explain me how it returns "<" symbol and is there any documents or cheat codes to ...
0
votes
1
answer
41
views
Why embe.rjs does not see my controller method in template?
In the project, I have template input:
{{#if (communicationPreferenceIs 'Phone')}}
<div class="row">
<div class="col-md-4 form-label">
...
0
votes
1
answer
46
views
How to create Ember Service that fetches data from Apollo GraphQL Server
I successfully fetched data from Apollo GraphQL Server in Amber route using ember-apollo-client. I tried the same approach to have a service fetching data but I'm getting Uncaught TypeError: this....
0
votes
1
answer
135
views
Uncaught Error: Could not find module `moment` imported from `ui/routes/application`
I'm trying to upgrade moment from 2.18.0 to 2.29.4 along with ember. I have upgraded ember to 4.12.2 but when I run the application, I'm getting Uncaught Error: Could not find module moment imported ...
0
votes
0
answers
16
views
Unable to close module dropdown of parent application on clicking anywhere in child application UI screen rendered in Ifaram
I am facing problem to close module dropdown on clicking anywhere in child application UI screen.
I am not be able to handle click Outside functionality for dropdown elements defined in Parent ...
0
votes
0
answers
48
views
Assertion Failed: targetValue must be greater than or equal to 0
When I use ember-table, it works well in application.hbs, but if the same code used as component, I got targetValue Assertion Fail, is there anyway to use EmberTable in component?
application.hbs
<...
0
votes
1
answer
51
views
Ember Fastboot monitor debug tool
I have a Fastboot application running on Docker and lately containers have been consuming a lot of CPU and RAM on the server. Is it possible to monitor what is causing this in Fastboot? Any plugins or ...
1
vote
1
answer
44
views
Hot reload in Ember?
Is there a way to enable hot reload (changing the page content without reloading the whole app) in Ember 4.2?
I tried plugins such as ember-ast-hot-load but I can't get them to work.
1
vote
1
answer
36
views
Is there a way to call an Ember Octane component method with parameters and have it return the text without implementing a helper?
On Ember Octane versions, how would I call a method in the component.js so that it simply returns the string value into the hbs template (without creating a helper)?
For example, I want for each item ...
0
votes
1
answer
142
views
Ember application runtime error uncaught referenceerror ember is not defined vendor.js
I'm trying to upgrade the ember from 3.* to 4.12.2. I'm not getting any compilation issues but when I run my application I'm getting "uncaught referenceerror ember is not defined" inside the ...
2
votes
0
answers
34
views
How to add draggable elements into fullcalendar event
I customized eventContent and added draggable elements inside of event. But the dragstart and dragstop event of the draggable elements are not emitting. It seems like the fullcalendar prevent other ...
0
votes
0
answers
45
views
Adapter leads code to http://localhost:8088/users but the Tomcat server says ( http://localhost:8088/users ) not available
I have some doubts that I am having application adapter, serializer, model, for storing/retrieving the user details.
using Emberjs Java servlet with org.json ajax ember-data/store adapter serializer......
0
votes
1
answer
50
views
Accessing Ember.js services from browser extension in versions ≥4.0
In Ember 4.0 and up, access to the Ember global object is deprecated. We have a browser plugin for internal debugging/support purposes that would gather some variables from an ember service using this ...
0
votes
0
answers
27
views
TypeError : cannot read properties of (undefined 'method') - ember
I got
TypeError: cannot read properties of (undefined ‘method’) at r.init (/a/b/cd/de/assets/vendor-sdfsd234234.js:9594:35
When I looked into the 9594 line on character 35 on the vendor file, here is ...
0
votes
2
answers
110
views
Ember 5.1 with ember-cli-stencil and third party components not working
I'm stuck. Perhaps someone is able to point me in the right direction to solve my problem.
I am trying to use third party stencil components in my ember app. Build is ok, but when i visit the app, ...
0
votes
2
answers
41
views
Ember.js computed property not waiting for asynchronous RSVP promise
I have an Ember.js component where I'm trying to use a computed property to determine its visibility based on the result of an asynchronous RSVP promise. However, it seems like the computed property ...
0
votes
0
answers
27
views
Not able to trigger event of parent application on click of Child application plugged-in using IFrame
I have One application created using Ember JS. Inside that I have plugined another application using IFrame created using react JS. I wanted to hide dropdown rendered from parent application by ...
0
votes
0
answers
30
views
How to add a multi-line text field to a Discourse Community signup page?
I would like to add a multi-line text field to my Discourse community’s signup page, but I am not sure how. Am I able to edit the source code to do this, add a file to the source code, or use a plugin ...
0
votes
2
answers
75
views
Triggering live-reloading when developing an Ember addon
I'm developing a private Ember addon for my team that will contain a few branded UI components that we will reuse in a bunch of different apps, such as a <BrandHeader /> and <BrandFooter />...
-1
votes
2
answers
66
views
Loader is not visible without timeout
I am using Ember JS for an application, I want to show the full loader before updating my DOM, like,
table.hbs
<div id="full-loader"></div>
{{#each data as |val|}}
<p>...
0
votes
0
answers
30
views
Issue with accessing params/queryParams inside transition.to/from in Ember 3.8 after adding "transition-state" deprecation
As part of upgrading our project's Ember version from 3.8 to 3.12, we have introduced deprecation id - "transition-state" as a part of deprecation workflow. With this deprecation, it is not ...
1
vote
1
answer
37
views
ember-bootstrap: after installing ember-power-select popovers not working correctly
I created a new project with ember-4.12.1 and installed ember-bootstrap (5.1.1). When I use the BsPopover component it is working as expected.
After installing ember-power-select (6.0.1) the popover ...
0
votes
1
answer
41
views
How to implement dynamic filtering in Ember.js dropdowns?
I'm working on an Ember.js application and I need to implement two dropdowns where the options in the second dropdown are filtered based on the selected value in the first dropdown. I have the ...
0
votes
1
answer
33
views
How to set a a unique id to the elements of a DOM in ember.js
To add more context, I would like to incorporate Product Fruits to our ember app. The service that we will use is the Tours of Product Fruits. When creating a tour, product fruits target the element ...
1
vote
0
answers
107
views
How to properly restore a session on reload using ember simple auth custom authenticator's restore() function?
I have followed this YouTube tutorial on getting started with ember simple auth: https://www.youtube.com/watch?v=bSWN4_EbTPI&t=908s
I have everything working properly except for when refreshing ...
0
votes
2
answers
86
views
set variable in hbs template using ember.js
I have an array of data and I need to iterate over it in my hbs template:
{{#each-in myArray.[0] as |key value|}}
<th>
{{value}}
</th>
{{/each-in}}
{{#each-in myArray.[1] as |key ...
0
votes
1
answer
19
views
how to update controller after RSVP.allSettled
After all rsvp promises are done in ember controller, how can I save all error status in controller and update DOM? I got undefined 'this', controller no longer accessible.
export default class ...