23,969 questions
0
votes
0
answers
54
views
emberjs tests not running
My tests are not running anymore, abort with this error:
Error: No tests were run.
at ProcessingQueue.done (webpack://__ember_auto_import__/./node_modules/qunit/qunit/qunit.js?:819:583)
at ...
0
votes
0
answers
39
views
File uploading with 'ember-file-upload'
I intend with this gjs to upload files to my web root but the response is always 404. Tried to follow the documentation, but probably missed something, about access permissions?? The files will ...
0
votes
1
answer
55
views
Using ember-concurrency tasks in ember resources
In our project we have a following class based resource
export class MinuteTimer extends Resource<MinuteTimerArgs> {
@service
declare dateManager: DateManagerService;
@tracked ...
0
votes
0
answers
15
views
ember-data - relationships not getting loaded
I’m encountering an issue with Ember Data (version 5.3.0) involving relationships not resolving as expected. My setup:
TPE model has a belongsTo relationship with the network-construct (NC) model:
...
0
votes
0
answers
38
views
ember - store.pushPayload - does not belong to this store instance
I have recently updated my ember project code from ember 3.16 to ember 5.12 (and ember-data to 5.3.0)
The following piece of code worked fine in ember 3.16 (without even injecting the store service ...
1
vote
1
answer
81
views
Emberjs - component using parent template after upgrading to ember 5.12 from ember 3.16
I recently updated my app from ember 3.16 to ember 5.12 and have started seeing a weird issue.
My component has started using template from the parent component is it extending.
I am using co-located ...
0
votes
0
answers
178
views
Could not find module `@ember/test-helpers` imported from `ember-cli-mirage/get-rfc232-test-context`
I am upgrading my ember app from 3.16 to 5.12. I am following step by step approach where I have upgraded most of the packages and handled deprecations successfuly.
But when I update the following ...
1
vote
0
answers
20
views
Is there a way to redirect user to different login pages depending on current route prefix if session token is expired?
We use Ember Simple Auth to work with authentication in our Ember application. Currently it's Ember v4.
We have two different user types and two different route prefixes in our application for them to ...
2
votes
0
answers
80
views
new ember.js application fails to start as cannot find node_modules/@embroider/macros/src/node.js.js (with double .js)
Just learning Ember.js
Following tutorial at https://guides.emberjs.com/release/tutorial/part-1/orientation/
with
ember new super-rentals --lang en
then once finished installing packages
cd super-...
0
votes
1
answer
34
views
Joi validation of emberjs belongsTo
ember 5.12
Joi 17.13.3
my emberjs model aModel has a field which is defined like this:
@belongsTo('anotherModel', {async:true, inverse:null}) anotherModel;
I want to validate, as part of my Joi ...
0
votes
0
answers
34
views
How to resolve Mirage mocking HasMany relationship error for Ember JS
Ember JS framework.
I am trying to test my route.js . I created route-test.js as below which is running fine but I need to use mirage mocking to mock foo model in route-test.js.
When I tried mocking, ...
0
votes
0
answers
23
views
ember: computed propertied | ember-macto-helper/computed vs @ember/objects
I am moving away from ember-macro-helpers/computed in my project and starting using computed from '@ember/object'
I have following code
rowData: computed('addEndpointsData', function () {
const ...
0
votes
1
answer
44
views
Proper way to migrate @computed decorators
I have a model Post that used a @computed decorator like this
@hasMany('comment', {async: true}) comments;
@computed('[email protected]')
get authorNames(){
let comments = this.comments;
...
1
vote
2
answers
67
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 ...
0
votes
0
answers
148
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
31
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
37
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
39
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
64
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
1
answer
33
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
71
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 ...
1
vote
1
answer
39
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
73
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
61
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
75
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
44
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
2
answers
66
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
1
answer
53
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
124
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
38
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
51
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
89
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
68
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
56
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
55
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
51
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
45
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
117
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 "...
3
votes
0
answers
166
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
43
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
1
answer
781
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
57
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
47
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
81
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
47
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
31
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
137
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
47
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
142
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
57
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 ...