Upgrade from 3.28 to 4.0 seems to be impossible
Ember.JS Forum
by Marco_Musolf
4h ago
Hi I have an existing Ember app which uses Ember 3.24. I have successfully uodated the application to version 3.28 but the upgrade to version 4.0 leads to a bunch of errors and the application is not working anymore. Furthermore we have ember add ons which are also outdated and I have no idea on how to upgrade these addons. Any help recommendation is appreciated 2 posts - 2 participants Read full topic ..read more
Visit website
SetInterval and @tracked
Ember.JS Forum
by b-rlw
3d ago
I don’t understand why whatTimeIsIt is not updating in the DOM. Ideas? The timer is ticking, I can set a breakpoint in the console and I see that whatTimeIsIt is changing… @tracked whatTimeIsIt timerId = null updateWhatTimeIsIt() { this.whatTimeIsIt = (new Date()).toISOString() } constructor() { super(...arguments) this.updateWhatTimeIsIt() this.timerId = setInterval(this.updateWhatTimeIsIt, 1000 ) } The display doesn’t update <div> <div>Timer</div> <div>{{this.whatTimeIsIt}}</div> </div> 4 posts - 2 participants Read full topic ..read more
Visit website
Why does {{#in-element}} only allow null/undefined for insertBefore
Ember.JS Forum
by davidtaylorhq
2w ago
The docs for {{#in-element}} say: insertBefore – by default the DOM element’s content is replaced when used as destinationElement . Passing null to insertBefore changes the behaviour to append the block content to the end of any existing content. Any other value than null is currently not supported. Being able to pass an element reference to insertBefore would be very useful for my use case. So I was trying to work out why this restriction exists. If I comment out this assertion in the template compiler: github.com emberjs/ember.js/blob/0b79740308/packages/ember-template-compiler/lib/plugins ..read more
Visit website
Some packages from node_modules are missing from Ember registry in production mode
Ember.JS Forum
by ablanco
3w ago
I have a project that I am updating from Ember 3.28 to Ember 5.4. After a lot of updating everything works perfectly in development, the app runs well and there are no errors. But it doesn’t load when opening it in production mode. I get this error: Uncaught Error: Could not find module `ember-simple-auth/initializers/ember-simple-auth` imported from `dashboard/initializers/ember-simple-auth` It complains that it can’t load the ember-simple-auth module (I’m installing version 6.0.0 of that addon). After investigating a debugging I’ve finally ended up checking the Ember modules registry. I th ..read more
Visit website
Browser transitionTo
Ember.JS Forum
by brunubarbosa
1M ago
Hello folks, I’m having an issue with a third-party Ember application. I need to maintain a code that calls functions from the Ember SPA (Single Page Application). This code is a browser extension that explores a page written in Ember. This extension calls functions that used to exist in the window object but no longer do (I understand that using these functions might be wrong and prone to issues). The code is as follows: const app = window.Ember.Namespace.NAMESPACES[1] app.__container__.lookup('router:main').transitionTo('path'); Searching through documentation, I couldn’t find anything abo ..read more
Visit website
Preserving non-Ember-app query parameters when navigating within App
Ember.JS Forum
by davidtaylorhq
1M ago
When transitioning using routerService.transitionTo("/home?a=b"), or via <LinkTo, Ember seems to strip out any query parameters which are not configured in the destination route/controller. This makes sense if Ember is the only thing consuming the query parameters. However, we have a number of situations where we want to preserve all query parameters. For example: we want to be able to add a link with an analytics parameter like /home?utm_campaign=foo, and have that parameter preserved when transitioning to the route. We don’t necessarily have a list of all the possible query parameters in ..read more
Visit website
Anyone dealt with FIPS compliance?
Ember.JS Forum
by miketervela
1M ago
My company is requiring FIPS requirements in all of its applications. That means no MD5, which Ember-cli appears to use (at least in our ember 3.24 app). I may be able to get an exception for this since it’s build code, but would rather just get it working. Here’s the failure we are seeing digital envelope routines:EVP_DigestInit_ex:disabled for FIPS at new Hash (node:internal/crypto/hash:69:19) at Object.createHash (node:crypto:133:10) at md5 (/home/jenkins/workspace/myapp/node_modules/leek/lib/md5.js:7:12) at new Leek (/home/jenkins/workspace/mayapp/node_modules/leek/lib/leek.js:35:41) at mo ..read more
Visit website
Best practice to react to changes in session storage
Ember.JS Forum
by b-rlw
1M ago
I want to have my component update when a change is made to the session storage. I’m using 5.4 and not TS. I think I need an observer, but there are two impediments. One, the example is in TS and I’m new enough to the web landscape that I can’t convert it to simple JS. Two, the documentation here and on other forums strongly discourage the use of observers. 1 post - 1 participant Read full topic ..read more
Visit website
Dynamic Fields in Ember Model
Ember.JS Forum
by Ankit_Jain
1M ago
Hi, I want to add fields dynamically, basically fields details will be fetched using api call. Can someone please guide how can we achieve this using ember. 2 posts - 2 participants Read full topic ..read more
Visit website
Ember.rs (rewrite my models+controllers in Rust)
Ember.JS Forum
by drauschenbach
1M ago
There are a number of WASM SPA frameworks emerging. Some interact with the DOM, others render on a canvas. NONE of them support templates, or the MVC or MVVM design pattern that templates represents. I think that leaves Ember in a unique position to do something to enable JS controllers & models to be replaced with Rust. Maybe LinkedIn would have a vested interest in sponsoring something along those lines? 1 post - 1 participant Read full topic ..read more
Visit website

Follow Ember.JS Forum on FeedSpot

Continue with Google
Continue with Apple
OR