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

Property 'queryParams' does not exist on type 'RouterState'. #5

Closed
raymondmuller opened this issue Aug 25, 2016 · 6 comments
Closed

Comments

@raymondmuller
Copy link

Getting this error: (Angular2 RC5)

/node_modules/angular2-token/src/angular2-token.service.ts:288:38 
    Property 'queryParams' does not exist on type 'RouterState'.
@neroniaky
Copy link
Owner

@raymondmuller Usually this error comes up when you don't have any routes defined. Could that be the case?
Angular2-Token tries to read from the router to check if a token is passed via the url params. Gonna try to publish a fix today. Otherwise you can just add empty routing to your main module, which should fix it.

@raymondmuller
Copy link
Author

@neroniaky Thanks for the quick response. I do have routes defined, which I import in app.module.ts. I've used the following boilerplate (Angular2-webpack-starter from AngularClass)
My app module looks similar to this (https://github.com/AngularClass/angular2-webpack-starter/blob/master/src/app/app.module.ts).

@neroniaky
Copy link
Owner

@raymondmuller maybe this has something to do with their experimental HMR. Not sure, need to look into it. Should be a small fix anyways, gonna try to upload it as soon as possible.
You can take a look here for a working example.

@raymondmuller
Copy link
Author

@neroniaky Thanks, appreciate it :)

@neroniaky
Copy link
Owner

@raymondmuller angular2-webpack-starter recently changed the @angular/router package from the official "3.0.0-rc.1" to a custom build. I just publish version 0.1.3, which should fix the problem. Could you give it a try?

@raymondmuller
Copy link
Author

@neroniaky Seems to work fine. Thanks for the quick fix!

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