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

Cannot find module '@angular/router/src/router'. #50

Open
hoangtranson opened this issue Jun 26, 2019 · 2 comments
Open

Cannot find module '@angular/router/src/router'. #50

hoangtranson opened this issue Jun 26, 2019 · 2 comments

Comments

@hoangtranson
Copy link

ERROR in node_modules/ngx-modal/RouteModal.d.ts(2,34): error TS2307: Cannot find module '@angular/router/src/router'.

As the title I got this issue when use ngx-modal with Angular 8.
Do we have any way to work around?

@hoangtranson
Copy link
Author

I found the link from this path node_modules/ngx-modal/RouteModal.d.ts

import { NavigationExtras } from "@angular/router/src/router";

Changed to

import { NavigationExtras } from "@angular/router";

Then working well on my local repo. But I want to update it globally.

@EddyMurphyxd
Copy link

+1

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