23,982 questions
1
vote
1
answer
46
views
LinkTo fails on click
I generate a link as:
<td><LinkTo @route="assets.asset" @model="{{asset.id}}">{{asset.id}}</LinkTo></td>
The link is generated correctly. When I click ...
1
vote
0
answers
126
views
Slow Ember build in docker container
I'm attempting to Dockerize my local development setup to make it much simpler to onboard new developers and ensure a common local environment for all. But i am running into build performance issues ...
0
votes
0
answers
18
views
Pollyjs delay request using timing: Timing.fixed(200) is not working in ember test environment
Pollyjs delay request using timing: Timing.fixed(200) is not working in ember test environment, but in development mode it delays request by 200ms
0
votes
1
answer
29
views
How to bootstrap Angular application from Ember js
I want to bootstrap angular webapp from ember js and for that, we have imported angular bundle files into index html of ember js and trying to bootstrap angular by <app-root> </app-root> ...
0
votes
0
answers
34
views
Updating a Single Attribute in Ember-Data Model Also Resets Relationships
I'm working on an Ember.js application where I need to update a single attribute (views) on a book model using Ember Data. However, when I call save() on the model, the relationships of the book (like ...
0
votes
1
answer
39
views
Multi-tab state persistence in webapp
Having done this for awhile, I’d love a quick sanity check: in a web app using the History Web API is there any way to replicate state persistence across multiple primary nav tabs like you might ...
0
votes
0
answers
24
views
Why accessing a components root element using this.$(#rootElementId) returns zero elements?
DOM
<div id="ember3705" class="ember-view">
<div id='childelement'></div>
</div>
I'm trying to execute this js code this.$('#ember3705') in component.js of ...
0
votes
1
answer
46
views
How to migrate Ember web application to Angular module by module
We have one web application developed in Ember js and we want to migrate it to latest Angular, but we want to migrate it module by module. so we need to coexist Angular and Ember both. and build ...
0
votes
0
answers
49
views
Error: Assertion Failed: expected container not to be destroyed
Reproduction
Probably related to https://github.com/emberjs/data/issues/5570
test('test', async function (assert) {
assert.dom('item').exists({ count: 2 });
await click('.menu');
await click('....
1
vote
1
answer
25
views
In qunit, how to query the scrollbar height or detect if a scroll bar is present on an element?
I'm writing tests for my Ember components. One of the more delicate issues is getting a specific element to scroll while not generating scroll bars elsewhere.
I'm trying to write a test that will tell ...
0
votes
2
answers
61
views
Background Video Not Autoplaying
Not sure if this is an issue with the local server ember generates, or if it is just a normal thing local servers do, but currently I have a video that I play in the background of my page that does ...
0
votes
2
answers
46
views
Local npm dependency in Ember.js 5.8
I need custom linting rules for my Ember 5.8 project. Ember 5.8 uses ESLint 8.57 and ESLint allows custom rules via Plugin, see this tutorial. Step 8 of said tutorial reads as follows:
You might want ...
0
votes
1
answer
44
views
How to create component in v2 addon using command line
I have v2 addon and I was create files manually, I want to be create in terminal to create components, service, utils,…etc.
I tried in v2 addon path of create component but it will get error!
PS C:\V2 ...
0
votes
1
answer
26
views
Ember-classic-decorator not support in v2 addon components, but works fine in normal addon components
I have v2 addon to use dependencies “ember-classic-decorator”: “^3.0.0”, import in my addon component get error message. But normal addon component It’s works fine.
app.js:96 Ember.onerror handler - ...
0
votes
0
answers
95
views
ember problem - ENOENT: no such file or directory, open 'c:\c:\ @warp-drive
I am trying to do an 'ember build' in a a 'ember new project' but i am getting all the time this strange message.
"
c:\Users\User\Desktop\ember-course\my-todo-app2>ember build
Environment: ...
0
votes
2
answers
50
views
How to select an input field in ember js via chrome console
Currently there is an input field that displays a search drop down as soon as I click on it , but If I store the field as a global variable and try temp1.select() in chrome console ( temp1 is the name ...
0
votes
0
answers
92
views
How to Add a Search Banner Component to the Custom Homepage in Discourse forum?
I am trying to add a search banner component to the new custom homepage feature in Discourse. I have followed the instructions to set up the custom homepage and added the plugin outlet, but the search ...
0
votes
1
answer
50
views
Render only child template in ember js
I have an Ember.js application, and I have a route called parent/child. When I render the parent/child template, I only want the content inside the parent/child template to be displayed. I don't want ...
0
votes
1
answer
63
views
Configure xunit output of Testem in Ember.js
I use Ember 5.6.0. Running ember test --silent --reporter xunit > ember-test-result.xml outputs an XML with the following content:
<testsuite name="Testem Tests" tests="439" ...
0
votes
1
answer
27
views
How to implement rectangular highlight tool on ember
I want to implement a rectangular highlight tool as seen on google.com -> Settings -> Send Feedback -> Capture Screenshot -> Highlight or Hide info.
Seems very complicated and I'm not sure ...
0
votes
1
answer
50
views
Why these ember data models are different from one another?
I am struggling for some time with this issue. Ember 1.12. One model passed is working fine, but another is not as it should. Here is the relevant parts from route(search.js) -
model(params) {
this....
0
votes
1
answer
48
views
packageRules definition for embroider to allow component from @glimmer/component to work in ember 5.8
Just upgraded from 5.4 to 5.8. Now I'm getting this error.
\src\node_modules\.embroider\rewritten-app\routes\components\case-tools\template.hbs:
Unsafe dynamic component: this.tool in
node_modules\....
0
votes
1
answer
64
views
Why is tabindex=0 still used in HTML even when a feature flag is false in Ember.js?
I'm working on an Ember.js project where I've implemented a feature flagging system to control certain UI elements based on specific conditions. However, I've encountered a situation where even when ...
0
votes
0
answers
47
views
The "path" argument must be of type string. Received type object in ember js
I updated the ember from 2.7 to 3.2 using command ember-cli-update
and after this I run the project using npm start then i'm getting error on terminal
type here
ERROR Summary:
- ...
0
votes
1
answer
47
views
In an Ember.js Octane Acceptance Test, how do I query and/or set the test window height?
I have an acceptance test to ensure that a PDF viewer on a specific route isn’t accidentally sized incorrectly. Due to a convergence of prior choices and the way the embed tag works, the viewer can ...
1
vote
1
answer
29
views
Ember.js octane acceptance test
I don't understand why fillIn can't find 'data-test-code-nav-selector'.
I have paused the test and using the devtools I copied this DOM excerpt. It displays as expected. As you can see, the select tag ...
0
votes
0
answers
40
views
How to call a component from a controller file?
I'm new to ember js, It may feel like a dumb question, but still:
I've already defined a component say {{pq-component}}, it works fine, when called from a .hbs file.
But when I try to call it from a ....
0
votes
2
answers
66
views
How to dynamically add click handler to Ember Octane component - dynamic "on" modifier
I have a situation where I need to make a component and it has some logic to either render as a button or as a DIV depending on if it has a link.
{{#let
(if
this.hasLink
(component "...
1
vote
0
answers
62
views
Gridstack does not adhere to dynamic drag handles
I'm currently using Gridstack in an Ember project and want to have a custom drag handle. I know this can be implemented by setting the draggable: { handle: '.my-custom-drag-handle' } in the options. ...
1
vote
1
answer
33
views
CORS Ember.js C#/.net SessionId Header
I have an Ember.js SPA that's calling a .net service via AXIOS. Everything was working until I started checking the SessionId header to return a 401 when it's expired.
As long as the token is valid, ...
0
votes
0
answers
18
views
How to a made query param for refreshed one table with filtered attributes
Context: I have a table of inputs and outputs for a person and with these values I calculate the total hours worked and check whether the total time requirement has been met. Example: Monday = 8 ...
0
votes
0
answers
19
views
How can I resolve "Parsing error: Cannot use import statement outside a module" in Ember.js?
My project uses ember-cli: 3.28.6, node:12.13.1
I am getting at least 100 of this error, in files that don't even have import statements, in files that were automatically generated by ember-cli, etc. ...
0
votes
0
answers
28
views
Accessibility on ember outlet elements
I have an ember web application, with a simplified structure of landing page like this:
<container>
<header></header>
<main> {{outlet}} </main>
&...
0
votes
1
answer
365
views
How to Resolve 'Uncaught TypeError: Cannot read property 'charAt' of undefined' Error in Vendor.js When Focusing First Error Field on Form Submission?
I'm currently grappling with an issue regarding the focusing of the first error field within a form upon submission. Despite successfully implementing functionality to focus on the first error field ...
0
votes
2
answers
51
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
44
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
68
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
31
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
28
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
114
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
40
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
113
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
40
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
116
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
31
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
211
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
1
answer
106
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
1
answer
61
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
211
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
40
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 {
...