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

Lightbox: location.subscribe error when RouterModule is not imported #189

Closed
amjadalfawal opened this issue Sep 7, 2018 · 4 comments
Closed

Comments

@amjadalfawal
Copy link

amjadalfawal commented Sep 7, 2018

when clicking on the open lightbox button
image

when I comment this line its back to work
image

what is the problem?

Angular: 6.0.3
Angular CDK: 6.4.7
Angular CLI: 6.1.5
Typescript: 2.7.2
Gallery: 3.1.1

@amjadalfawal amjadalfawal changed the title a TypeError: Cannot read property 'subscribe' of null Sep 7, 2018
@MurhafSousli
Copy link
Owner

Can you reproduce the error in a stackblitz?

@amjadalfawal
Copy link
Author

amjadalfawal commented Sep 7, 2018

@MurhafSousli
Copy link
Owner

Add RouterModule.forRoot([])

@MurhafSousli MurhafSousli changed the title TypeError: Cannot read property 'subscribe' of null Lightbox: location.subscribe error when RouterModule is not imported Sep 7, 2018
@MurhafSousli
Copy link
Owner

In v3.1.2 You don't have to import the RouterModule

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

No branches or pull requests

2 participants