question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with ember 3.1

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewtimberlakecommented, May 23, 2018

Thanks everyone for the help. {async: false} and preloading was the answer

1reaction
donaldwassermancommented, Apr 19, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found