Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion Failed: Attempting to lookup an injected property on an object without a container #81

Open
chrismllr opened this issue Oct 7, 2019 · 1 comment

Comments

@chrismllr
Copy link

chrismllr commented Oct 7, 2019

Observing this error when using the @queryParam decorator:

Error: Assertion Failed: Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.

Strangely, it throws the error when trying to set up the service injections on my controller.

Usage:

export default class StuffController extends Controller {
  // error occurs when trying to set up this injection
  @service('stuff') stuffAPI;

  @tracked stuffs = [];

  @queryParam({ refresh: true }) page = 1;

  @queryParam({ refresh: true }) pageSize = 100;
  ...
}

Versions

"ember-cli": "~3.13.0",
"ember-parachute": "^1.0.2",
"ember-source": "~3.13.1"
@mschorsch
Copy link

mschorsch commented Oct 13, 2019

I guess this has the same cause as #80.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants