23,969 questions
0
votes
0
answers
56
views
Problem processing route in Ember.js app when building and running app in Android studio emulator
Trying to build and run an Ember app with Capacitor on virtual device in Android studio. Build and installation goes fine until the app is launched and stops when trying to process a spesific route. ...
0
votes
1
answer
289
views
Is there a way to save the changes mage to local storage in ember.js
I have been trying to implement a cart function to my e-commerce . In this cart function when ever I add an item, if its already present in the cart we must increase the quantity. Everything works ...
0
votes
1
answer
77
views
Ember Fastboot is not working with the post request
while Accessing website in browser , i am seeing the below error..
Api is working in the browser as well as in postman but Ember fastboot is not working ... Any help should be really helpful.
...
0
votes
1
answer
155
views
Following Tutorial, {{on}} modifier not working
I just got into ember.js recently and I've been following their tutorial.
However, in the interactive components section, I came across some errors.
The below is my image.hbs file
{{#if this.isLarge}}
...
0
votes
2
answers
1k
views
Add Intl.Locale polyfill only when needed (How to block script tag with async functions)
I am trying to add Intl polyfill to an ember app, but have run into the issue that I need to add a script tag that executes async functions before evaluating other script tags.
In ember I can add a ...
2
votes
1
answer
2k
views
EmberJS vs. React [closed]
Good day! I have a question. It is planned to develop a large web project, which will be scaled in the future. I would like to know what is better to choose EmberJS or React? There is experience with ...
0
votes
0
answers
500
views
Ember cannot find existing component
I had a problem while working with Ember for the first time.
I created a component using ember g component general-container
It has created file with the name general-container.hbs
Now, when I try to ...
0
votes
1
answer
222
views
Unit testing sessionStorage value in emberJS
I'm new to ember and trying to figure out how to unit test, using sinon, the sessionStorage based on url parameters when that page is visited. I've tried a few things but still can't get the desired ...
0
votes
1
answer
64
views
Ember SPA application with related models
Lets say we are working on a recipe app and we have 2 get requests initially.
/ingredients/
/recipes/
These create the recipe and the ingredient model.
Now recipes are made of ingredients and amount ...
0
votes
0
answers
91
views
Dynamically loaded script is not using dynamically loaded css until I 'prettify' css in devtools source
I am experimenting with mounting an existing Ember app in a React app. I have a React component that loads the vendor/app .css and then the vendor/app .js, with an await between each load. The app ...
0
votes
1
answer
62
views
ember route and templates not workking
i have included a component in application.hbs
<Auth></Auth>
next in the auh components i have the following code
auth.hbs
<form>
<div class="text-field">
...
0
votes
0
answers
488
views
Running Ember Tests in the terminal: Console log not working
I am working on an ember 2.8 project and I am a newbie. On top of this, we are using a docker container to run in pc because we don't have a mac. So I running the qunit tests and am unable to go to /...
1
vote
0
answers
157
views
ember-native-class-codemods TypeError: Cannot read property 'process' of undefined
My test app is using ember-cli and ember is 3.28. When I tried to use ember-native-class-codemods to convert my test appli
cation it throws below error,
TypeError: Cannot read property 'process' of ...
3
votes
0
answers
182
views
Add meta data to ember js mirage data
I am working in an ember-cli project which has Mirage already set up for testing. It may be an older version, miragejs: ^0.1.44 and ember-cli-mirage: ^2.4.0
I have added a feature that relies on data ...
0
votes
1
answer
87
views
ember.js ember generate acceptance-test does not generate a test file
I am trying to learn ember by following the tutorial that they have on their website.
One of the section was about generating a test file by running ember generate acceptance-test super-rentals which ...
0
votes
1
answer
403
views
Override computed property in Ember 4 adapter
In the "new" class style of Ember / JavaScript (at least new to me), I am having trouble adapting old tutorials to set a computed property in my JSONAPIAdapter.
export default class ...
1
vote
1
answer
122
views
Ember.JS Tutorial "Super-Rentals" and API Paths
I've been following the SuperRentals Ember.JS tutorial and have also cloned the finished product from here.
I'm struggling to identify where we define that we retrieve data from rentals.json in <...
0
votes
1
answer
73
views
How to create a user authentication using rails as backend and ember as frontend
I'm working on eCommerce for my internship project. But I don't know how to create the user authentication using rails and ember
0
votes
1
answer
345
views
Fetch with Session ID in ember JS
i am a newbie in ember and servlet. Here is the code snippet of dashboard.js from the route directory.
import Route from '@ember/routing/route';
export default class DashboardRoute extends Route {
...
1
vote
1
answer
185
views
Ember Octane vs old Ember the ability of using `reopen()` method
So I working on converting a them main app.js file over to Ember 4 and native javascript. My question is how are people handling modifying things like the Route class. My current portion of codes ...
1
vote
1
answer
389
views
How to get input value in TypeScript (ember)?
I am new to Ember, try to make simple todo app by my own after YT tutorial. However I have a problem when I try to access input value.
Property 'value' does not exist on type 'EventTarget'
My ...
0
votes
1
answer
108
views
Ember JS check if the model is already defined
Trying to define custom model in ember using
Ember.getOwner(this.store).register('model:custom-model', {
customName: DS.attr('string')
});
While running the same component again, getting the ...
1
vote
1
answer
418
views
Ember FontAwesome not displaying some of free svg icons
I am working a rewrite of of an application that was previously built with Ember 3.12 and now being tested with 4.20. I am building out a few components and decided to mess around with the footer and ...
2
votes
1
answer
3k
views
Minimist vulnerability
We are facing critical vulnerability in minimist which is added as transitive dependency.
+-- [email protected]
| +-- [email protected]
| | `-- [email protected]
We tried to resolve this using couple of ...
0
votes
1
answer
857
views
Can console.log be passed in to test a Ember.js component from my application template?
I am building a simple button component and I would like to test that my click handler is working by passing in console.log (or some other function) into my component. This is in Ember 4.
app/...
2
votes
1
answer
424
views
EmberJS model from route returns undefined in controller
Can some one help me on the below doubt?
I am using EmberJS 3.4 version and I have a route which looks like
export default Route.extend({
model(){
const items = [{price: 10}, {price: 15}]
...
0
votes
2
answers
202
views
how to filter out files during when ember-cli is building my app (filtering monaco's many files, specifically)
I am trying to reduce monaco-editor dependency size.
I found this answer which shows how to do it on angular - by editing the glob configuration in angular.json file.
What is the corresponding file ...
0
votes
1
answer
132
views
How to Create a Dropdown Menu with Static Items in Ember
I'm very new to JS/Ember and have been able to create a static dropdown menu that functions as desired however I've duplicated the static array of objects that holds the dropdown items in my model and ...
-1
votes
1
answer
303
views
Errors when using "npm start" (in MacOS)
I have been trying for sometime already to just run "npm start" for an old app developed with EmberJs but I get several errors. I had tried the following:
Uninstall, cache clean, install ...
0
votes
1
answer
156
views
How to highlight the selected item from basic dropdownlist in ember?
I'm using a basic dropdown in Ember and in the list, once we select item in the content list, I want to highlight the selected item. I'd like to know if I can use a simple [aria-current] & [aria-...
0
votes
1
answer
672
views
How to modify/change the ember mirage response in my tests file?
The application uses ember-cli-mirage to mock the data and uses specific endpoint to get the specific response. Mocking data and showing the content to the templates works fine.
Problem: I can't ...
0
votes
1
answer
370
views
Model Changes is not seen unless refreshed
I am working on an ember application and I have a model hook which gets data from mysql and displays in a template.What I want to ask is ,when the data changes it is not seen unless the page is ...
2
votes
1
answer
9k
views
Content-Disposition: download file automatically
The API call to the server is returning a zip file with Content-Disposition in format attachment, <filename>
I am using FileSaver's saveAs to save the file.
this.ajax.raw(requestUrl, {
...
0
votes
3
answers
137
views
Click on ember button Selenium Python
I'm trying to click in this button but I got an error everytime:
<div class="refresh-box">
<span>
<button type="button" id="ember1328" class="btn-refresh btn btn-default ...
1
vote
1
answer
1k
views
Ember app error - Could not find module `undefined/app` imported from `(require)`
I'm able to start my ember app but nothing loads in the screen and I noticed this error in browser console log.
Any idea about what could I be missing?
ember serve
WARNING: Node v16.14.2 is not tested ...
2
votes
2
answers
701
views
Not able to create a new ember app - Could not resolve dependency error
I'm just trying to create a new app from scratch, but getting this error:
Command failed with exit code 1: npm install --loglevel error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve ...
1
vote
0
answers
97
views
Embroider:MacrosConfig the given config from 'Project Path' for packageName 'undefined' is not JSON serializable
When I try to start Ember server (ember serve) I get this error
[Embroider:MacrosConfig] the given config from 'C:\WebDev\cpc\front-end_service\node_modules\ember-get-config' for packageName '...
0
votes
0
answers
106
views
Angular 12 or 13 Observers vs Ember.js
I have been working in Ember.js since last 8 years. Now switched to Angular.js Version 13
In Ember.js if I have to do something when some variables of model change, This was the code
Following code is ...
1
vote
1
answer
1k
views
How can I upgrade ember 2.7 to 3.28?
My team inherited an old (around 2017) ember.js based project, and we need to choose between remake the project with vue, or just upgrade ember version.
The project use node 6.16, and here are the ...
0
votes
1
answer
1k
views
Build Error (broccoli-persistent-filter:EslintValidationFilter) in test-helper.js
I'm sorry if this has been asked but I'm struggling to find a fix and really could do with some help. It has been a while since I last created a fresh ember project, but after creating a new project ...
4
votes
1
answer
225
views
Serving a project in Ember using `ember s` triggers file changed
So, I am serving an Ember using ember s command. Even though I do not make any changes to the code I keep seeing the entry file changed <fileName> in the server startup log, this makes the ...
0
votes
0
answers
69
views
Render all routes/templates in one page
I'm having an ember.js app with multiple (nested and not nested) routes, just like a usual ember app.
What I want: Export multiple templates as pdf
For this to achieve, I wanted to render all the ...
1
vote
0
answers
383
views
Template Compiler Error (TemplateCompiler) in ember-paper/templates/components/paper-dialog.hbs
My ember application started showing below error while building the app (Initially it was working and without any code change, build started failing):
*Template Compiler Error (TemplateCompiler) in ...
0
votes
1
answer
335
views
Ember has-block to detect empty block
In ember octane, is there a way to detect {{yield}} is not an empty string?
The has-block function will return true if we use an empty component like this
<IntakeFormElement></...
1
vote
1
answer
137
views
ember-electron application start (code hierarchy)
I'm trying to move a very old 2.x ember-electron application to new electron with ember-electron and got application window with blank screen and error in console:
(node:9061) electron: Failed to load ...
0
votes
1
answer
48
views
EmberJS 4.2 + SocketIO 4 setup
In my application, when I refresh the page, sometime I can't able to get data with SocketIO.
I think the event emitter was triggered before socket connecting to server.
SocketIO Code:
import { io } ...
0
votes
1
answer
185
views
Issue with ember-cli-rails and puma-dev
Just getting started with a rails api and ember frontend. I'm using ember-cli-rails and puma-dev. I'm getting an error when visiting the localhost at .test. I'm not sure what is causing it, or if it's ...
0
votes
1
answer
1k
views
How do I refresh Data Store data in Ember.Js?
How do I get fresh data from the server/DS in ember without reloading a page?
here is the updated component for ember
import Component from '@ember/component';
import { set } from '@ember/object';
...
1
vote
1
answer
312
views
How do I bring FullCalendar(v5) into Ember.js(v4) to render within a component?
I'm trying to integrate FullCalendar (v5) with an Ember.JS (4.2) app, and am able to get things to work if I just import the library via CDN and inline / hard code it -- however if I attempt to break ...
-1
votes
1
answer
235
views
How does ember fetch perform ajax query?
I'm using ember-fetch and from it's source code I cannot figure out where it made the call XHR call.
In another word, where does it call window.XMLHttpRequest?
Coming from a jQuery background, I'm ...