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

Decorators breaking something #5

Open
JCKodel opened this issue May 12, 2017 · 1 comment
Open

Decorators breaking something #5

JCKodel opened this issue May 12, 2017 · 1 comment

Comments

@JCKodel
Copy link

JCKodel commented May 12, 2017

import { EventAggregator } from "aurelia-event-aggregator";

@inject(EventAggregator)
export class Index
{
	constructor(eventAggregator)
	{
		this.eventAggregator = eventAggregator;
		this.eventAggregator.publish("VersionRequest", {});
	}
}

With decorator, I get this error:

Uncaught (in promise) Error: No view model found in module "pages/retrieval/selection/index".
    at eval (eval at 93 (0.bundle.js:4528), <anonymous>:3254:15)
    at <anonymous>

Without the decorator, works fine (of course, I need it)

@alflennik
Copy link
Owner

Hi JCKodel, you are correct, I was able to reproduce this! I am going to update the dependencies and check the boilerplate from the latest Aurelia releases, but you'll have to be a bit patient! I won't be able to touch this for a little while. Oh, and let me know if you were able to fix it and how.

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