Error with ember 3.1
See original GitHub issueHi, I recently updated ember to version 3.1 and now ember-power-select is not working if I use the selected option.
{{#power-select options=layouts
selected=selectedLayout
onchange=(action (mut selectedLayout)) as |layout|}}
{{layout.name}}
{{/power-select}}
layouts is the result of
this.get('store').findAll('layout')
The error message is
Error: Assertion Failed: You attempted to access the `then` property (of <(unknown mixin):ember757>).
Since Ember 3.1, this is usually fine as you no longer need to use `.get()`
to access computed properties. However, in this case, the object in question
is a special kind of Ember object (a proxy). Therefore, it is still necessary
to use `.get('then')` in this case.
If you encountered this error because of third-party code that you don't control,
there is more information at https://github.com/emberjs/ember.js/issues/16148, and
you can help us improve this error message by telling us more about what happened in
this situation.
it seems to come from this line https://github.com/cibernox/ember-power-select/blob/97621afa0284a2034a52684d80bbf766a981bb43/addon/components/power-select.js#L141
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Ember 3.1 and 3.2 Beta Released
Ember 3.1 is a minor release containing several new features and bug fixes. It includes a bump of Glimmer VM, Ember's rendering ...
Read more >Why does Ember 3.1 have trouble dealing with Ember Data ...
Actually, whe fundamental problem seems to be that the certificate model had an async relationship to the domain model, and by using {async: ......
Read more >[Solved]-Errors in IE 11 after `Ember new`, app does not serve ...
I have an enum in my Typescript / Ember 3.1 app and I am getting import errors at runtime. What's going on? ......
Read more >Building a Bookstore App with Ember Data
Ember Data will issue a background request to refresh the model only after an hour. You can check this in the Network panel...
Read more >Challenges I face(d) with Ember.js - Medium
Refer Ember.js 3.1 release blog post for more information. ... But I fail to understand why to invoke a JavaScript function from a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks everyone for the help.
{async: false}
and preloading was the answer@cibernox @Titinux - I submitted a PR. As I explain in the #1097, I don’t know if it’s the most elegant, but at least it works.