Unable to import "ParamMap" in Angular 4 application development page
Hi All,
I am unable to import "ParamMap" into my "angular 4" it is displaying error message , can any one please help me in solving this issue.
When i import the
import { ParamMap } from '@angular/router';
in my angular 4 application development code in Visual Studio Code , the console is displaying below error message and the app is failed to compile.
ERROR in C:/Users/agudla/Desktop/Vasundhara/VS Code Work space 4/my-app/src/app/hero-detail.component.ts (3 ,10): Module '"C:/Users/agudla/Desktop/Vasundhara/VS Code Work space 4/my-app/node_modules/@angular/router/ index"' has no exported member 'ParamMap'.
ERROR in C:/Users/agudla/Desktop/Vasundhara/VS Code Work space 4/my-app/src/app/hero-detail.component.ts (3 ,10): Module '"C:/Users/agudla/Desktop/Vasundhara/VS Code Work space 4/my-app/node_modules/@angular/router/ index"' has no exported member 'ParamMap'. webpack: Failed to compile.
I am using below data node : v6.11.3 npm : 3.10.10
This is support related question which is better suited for a site like stackoverflow or an angular gitter channel, so I'm closing this issue. But a tip: check to make sure you're importing the RouterModule into your NgModule.
did you try to reinstall dependencies ?
I solved the issue by installing "ParamMap" seperately using command prompt . and after that i imported RouterModule into my NgModule.
On 29 September 2017 at 18:59, David K. Hiheaglo [email protected] wrote:
did you try to reinstall dependencies ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/angular/angular-cli/issues/7882#issuecomment-333126062, or mute the thread https://github.com/notifications/unsubscribe-auth/AeiK0q5quL89w0FVGkplfdh1AzY5ATnrks5snPCdgaJpZM4Poorz .
-- rehards, vasundharatestmail
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.