Angular 7: core.js:12501 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment:Lazy load module error Uncaught (in promise): TypeErrorAngular 5 form component causing Error: 'RangeError: Maximum call stack size exceeded 'TypeError: Cannot read property 'map' of undefined with Angular v6ERROR TypeError: Cannot read property 'openDialogTEST' of undefinedAngular | How to get more than two return value from .subscribeAngular 7 Lazy loading With AuthenticationCreating Dummy Model In Angularhow to fix 'Error: Cannot match any routes. URL Segment: 'anythongs''Cannot read property 'map' of undefined.ANGULAR-CHARTJSopen angular material sidenavBar from another component issue in working with service
Has Dumbledore ever scolded Harry?
Python web-scraper to download table of transistor counts from Wikipedia
Can Brexit be undone in an emergency?
Exam design: give maximum score per question or not?
Wrong Schengen Visa exit stamp on my passport, who can I complain to?
Nurikabe minicubes: the Headache, the Panache, the Apache
How To Make Earth's Oceans as Brackish as Lyr's
Why does '/' contain '..'?
Amortized Loans seem to benefit the bank more than the customer
What does this line from The hobbit mean?
In what sequence should an advanced civilization teach technology to medieval society to maximize rate of adoption?
Teleport everything in a large zone; or teleport all living things and make a lot of equipment disappear
What do these two notes together mean?
How to publish superseding results without creating enemies
How to give my students a straightedge instead of a ruler
Ambiguity in notation resolved by +
Can a business put whatever they want into a contract?
Vector in 9 dimensions always has a solution?
Planar regular languages
Does a feasible high thrust high specific impulse engine exist using current non space technology?
Expectation value of operators with non-zero Hamiltonian commutators
How would you control supersoldiers in a late iron-age society?
What is a "major country" as named in Bernie Sanders' Healthcare debate answers?
Is there a tool to measure the "maturity" of a code in Git?
Angular 7: core.js:12501 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment:
Lazy load module error Uncaught (in promise): TypeErrorAngular 5 form component causing Error: 'RangeError: Maximum call stack size exceeded 'TypeError: Cannot read property 'map' of undefined with Angular v6ERROR TypeError: Cannot read property 'openDialogTEST' of undefinedAngular | How to get more than two return value from .subscribeAngular 7 Lazy loading With AuthenticationCreating Dummy Model In Angularhow to fix 'Error: Cannot match any routes. URL Segment: 'anythongs''Cannot read property 'map' of undefined.ANGULAR-CHARTJSopen angular material sidenavBar from another component issue in working with service
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Hi In my code i am navigating to different html page when i get a reply from my Server.All the things are working fine before i updating my angular version 5 to 7. After version upgradation same code is throwing the below error.
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'uploads/dockerExcecutionDependency/vnc.html'
Error: Cannot match any routes. URL Segment: 'uploads/dockerExcecutionDependency/vnc.html'
at ApplyRedirects.push../node_modules/@angular/router/esm5/router.js.ApplyRedirects.noMatchError (router.js:1765)
at CatchSubscriber.selector (router.js:1730)
at CatchSubscriber.push../node_modules/rxjs/_esm5/internal/operators/catchError.js.CatchSubscriber.error (catchError.js:34)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at TapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/tap.js.TapSubscriber._error (tap.js:61)
at resolvePromise (zone.js:814)
at resolvePromise (zone.js:771)
at zone.js:873
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:14051)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)
Please find my component code which i am sending the url to my html after getting reply from the server
ngOnInit()
this.dockerIpPort();
///////////////////////
dockerIpPort()
var objDocker=;
objDocker["ipAddress"]="192.168.99.100";
objDocker["vncPort"]="32768";
objDocker["vncPassword"]="secret";
this.servicekey.dockerIpPortServiceCall(objDocker).subscribe(
result =>
let url = "/uploads/dockerExcecutionDependency/vnc.html"
this.dockerPath09 =
this.sanitizer.bypassSecurityTrustResourceUrl(url);
document.getElementById("activateDockerButton").click();
);
//dockerIpPort
html code where i am using the url to navigation.
<div>
<div class = "modal fade" id = "myModal04">
<div class = "modal-dialog modal-lg">
<div class = "modal-content docker">
<div class="modal-footer dockerFooter">
<p>Close</p>
<button type="button" class="btn btn-default dockerClose" data-dismiss="modal"><span class="glyphicon glyphicon-remove-circle"></span></button>
</div>
<div class = "modal-body dockerbody">
<iframe [src]="dockerPath09" height="100%" width="100%">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</div>
<!-- myModal04 -->
Please Suggest me a better approach to fix this Error. Thanks in Advance
please Find app.module.ts file
import BrowserModule from '@angular/platform-browser';
import NgModule from '@angular/core';
import Router from '@angular/router';
import RouterModule, Routes from '@angular/router';
import HttpModule from '@angular/http';
import FormsModule from '@angular/forms';
import FileDropModule from 'ngx-file-drop';
import HttpClientModule from '@angular/common/http';
import AppComponent from './app.component';
import HeaderComponent from './header.component';
import LoginComponent from './login.component';
import ProjectDetailComponent from './pDetail.component';
import LoginServiceComponent from './login.service';
import ProjectSelectionServiceComponent from
'./projectSelection.service';
import SelectionComponent from './projectSelection.component';
import ModuleComponent from './module.component';
import FeatureComponent from './featurePage.component';
import TestExecutionComponent from './testExecution.component';
import BrowserAnimationsModule from '@angular/platform-
browser/animations';
import apiServiceComponent from './apiService';
import ReactiveFormsModule from '@angular/forms';
import ObjectComponent from './object.component';
import PageNameComponent from './pageName.component';
import ObjectNameComponent from './objectName.component';
import ObjectServiceComponent from './object.service';
import CaptureLabComponent from './captureLab.component';
import ImportProjectComponent from './importProject.component';
import ModuleServiceComponent from './modulePage.service';
import FeatureServiceComponent from './featurePage.service';
import ImportComponent from './importPage.component';
import ImportServiceComponent from './importPage.service';
import ProjectDetailServiceComponent from './pDetail.service'
import AmazingTimePickerModule from 'amazing-time-picker';
import ScriptImportComponent from './script-import/script-
import.component';
import EditComponent from './edit/edit.component';
import CreateTestCaseComponent from './create-test-case/create-
test-
case.component';
import ReportComponent from './report/report.component';
import ObjectCreationComponent from './object-creation/object-
creation.component';
import CreateReusableFunctionComponent from './create-reusable-
function/create-reusable-function.component'; // this line you need
import CreatesuiteComponent from './createsuite.component';
import ExecutionComponent from './execution.component';
import AIComponent from './ai/ai.component';
import TestCaseCommonService from './test-case-common.service'
import NewCreateTestCaseComponent from './new-create-test-
case/new-create-test-case.component';
import Ng2GoogleChartsModule from 'ng2-google-charts';
import SuitelevelComponent from
'./suitelevel/suitelevel.component';
import FeatureLevelComponent from './feature-level/feature-
level.component';
import ScriptLevelComponent from './script-level/script-
level.component';
import StepLevelComponent from './step-level/step-level.component';
import ChartModule from 'angular2-chartjs';
import ExecutionService from './service/execution.service';
import GraphReportService from './service/graph-report.service';
import ShContextMenuModule from 'ng2-right-click-menu';
const appRoutes: Routes = [
path: 'ImportPage', component: ImportComponent ,
path: 'createProject', component: ImportProjectComponent ,
path: '', component: ProjectDetailComponent,
children: [
path: 'CreateModule', component: ModuleComponent ,
path: 'CreateFeature', component: FeatureComponent ,
path: 'importComponent', component: ImportComponent ,
path: 'editComponent', component: EditComponent ,
path: 'createTestCaseComponent', component: CreateTestCaseComponent
,
path: 'captureLabComponent', component: CaptureLabComponent ,
path: 'testExcecutionComponent', component: TestExecutionComponent
,
path: 'reportComponent', component: ReportComponent ,
path: 'objectCreationComponent', component: ObjectCreationComponent
,
path: 'objectRepository', component: ObjectComponent ,
path: 'createReusableFunction', component:
CreateReusableFunctionComponent ,
path: 'createsuitecomponent' ,component: CreatesuiteComponent,
path: 'executionComponent', component: ExecutionComponent ,
path: 'Artificialpath', component: AIComponent ,
path:'suitelevel',component:SuitelevelComponent,
path:'featurelevel',component:FeatureLevelComponent,
path:'scriptlevel',component:ScriptLevelComponent,
path:'steplevel',component:StepLevelComponent,
path: 'NewCreateTestCaseComponent', component:
NewCreateTestCaseComponent,
children: [
path:'check',component:StepLevelComponent
]
]
,
path: 'projectSelection', component: SelectionComponent ,
path: 'logincomponent', component: LoginComponent ,
path: 'createsuitecomponent', component: CreatesuiteComponent ,
path: 'executionComponent', component: ExecutionComponent ,
];
angular
add a comment
|
Hi In my code i am navigating to different html page when i get a reply from my Server.All the things are working fine before i updating my angular version 5 to 7. After version upgradation same code is throwing the below error.
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'uploads/dockerExcecutionDependency/vnc.html'
Error: Cannot match any routes. URL Segment: 'uploads/dockerExcecutionDependency/vnc.html'
at ApplyRedirects.push../node_modules/@angular/router/esm5/router.js.ApplyRedirects.noMatchError (router.js:1765)
at CatchSubscriber.selector (router.js:1730)
at CatchSubscriber.push../node_modules/rxjs/_esm5/internal/operators/catchError.js.CatchSubscriber.error (catchError.js:34)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at TapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/tap.js.TapSubscriber._error (tap.js:61)
at resolvePromise (zone.js:814)
at resolvePromise (zone.js:771)
at zone.js:873
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:14051)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)
Please find my component code which i am sending the url to my html after getting reply from the server
ngOnInit()
this.dockerIpPort();
///////////////////////
dockerIpPort()
var objDocker=;
objDocker["ipAddress"]="192.168.99.100";
objDocker["vncPort"]="32768";
objDocker["vncPassword"]="secret";
this.servicekey.dockerIpPortServiceCall(objDocker).subscribe(
result =>
let url = "/uploads/dockerExcecutionDependency/vnc.html"
this.dockerPath09 =
this.sanitizer.bypassSecurityTrustResourceUrl(url);
document.getElementById("activateDockerButton").click();
);
//dockerIpPort
html code where i am using the url to navigation.
<div>
<div class = "modal fade" id = "myModal04">
<div class = "modal-dialog modal-lg">
<div class = "modal-content docker">
<div class="modal-footer dockerFooter">
<p>Close</p>
<button type="button" class="btn btn-default dockerClose" data-dismiss="modal"><span class="glyphicon glyphicon-remove-circle"></span></button>
</div>
<div class = "modal-body dockerbody">
<iframe [src]="dockerPath09" height="100%" width="100%">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</div>
<!-- myModal04 -->
Please Suggest me a better approach to fix this Error. Thanks in Advance
please Find app.module.ts file
import BrowserModule from '@angular/platform-browser';
import NgModule from '@angular/core';
import Router from '@angular/router';
import RouterModule, Routes from '@angular/router';
import HttpModule from '@angular/http';
import FormsModule from '@angular/forms';
import FileDropModule from 'ngx-file-drop';
import HttpClientModule from '@angular/common/http';
import AppComponent from './app.component';
import HeaderComponent from './header.component';
import LoginComponent from './login.component';
import ProjectDetailComponent from './pDetail.component';
import LoginServiceComponent from './login.service';
import ProjectSelectionServiceComponent from
'./projectSelection.service';
import SelectionComponent from './projectSelection.component';
import ModuleComponent from './module.component';
import FeatureComponent from './featurePage.component';
import TestExecutionComponent from './testExecution.component';
import BrowserAnimationsModule from '@angular/platform-
browser/animations';
import apiServiceComponent from './apiService';
import ReactiveFormsModule from '@angular/forms';
import ObjectComponent from './object.component';
import PageNameComponent from './pageName.component';
import ObjectNameComponent from './objectName.component';
import ObjectServiceComponent from './object.service';
import CaptureLabComponent from './captureLab.component';
import ImportProjectComponent from './importProject.component';
import ModuleServiceComponent from './modulePage.service';
import FeatureServiceComponent from './featurePage.service';
import ImportComponent from './importPage.component';
import ImportServiceComponent from './importPage.service';
import ProjectDetailServiceComponent from './pDetail.service'
import AmazingTimePickerModule from 'amazing-time-picker';
import ScriptImportComponent from './script-import/script-
import.component';
import EditComponent from './edit/edit.component';
import CreateTestCaseComponent from './create-test-case/create-
test-
case.component';
import ReportComponent from './report/report.component';
import ObjectCreationComponent from './object-creation/object-
creation.component';
import CreateReusableFunctionComponent from './create-reusable-
function/create-reusable-function.component'; // this line you need
import CreatesuiteComponent from './createsuite.component';
import ExecutionComponent from './execution.component';
import AIComponent from './ai/ai.component';
import TestCaseCommonService from './test-case-common.service'
import NewCreateTestCaseComponent from './new-create-test-
case/new-create-test-case.component';
import Ng2GoogleChartsModule from 'ng2-google-charts';
import SuitelevelComponent from
'./suitelevel/suitelevel.component';
import FeatureLevelComponent from './feature-level/feature-
level.component';
import ScriptLevelComponent from './script-level/script-
level.component';
import StepLevelComponent from './step-level/step-level.component';
import ChartModule from 'angular2-chartjs';
import ExecutionService from './service/execution.service';
import GraphReportService from './service/graph-report.service';
import ShContextMenuModule from 'ng2-right-click-menu';
const appRoutes: Routes = [
path: 'ImportPage', component: ImportComponent ,
path: 'createProject', component: ImportProjectComponent ,
path: '', component: ProjectDetailComponent,
children: [
path: 'CreateModule', component: ModuleComponent ,
path: 'CreateFeature', component: FeatureComponent ,
path: 'importComponent', component: ImportComponent ,
path: 'editComponent', component: EditComponent ,
path: 'createTestCaseComponent', component: CreateTestCaseComponent
,
path: 'captureLabComponent', component: CaptureLabComponent ,
path: 'testExcecutionComponent', component: TestExecutionComponent
,
path: 'reportComponent', component: ReportComponent ,
path: 'objectCreationComponent', component: ObjectCreationComponent
,
path: 'objectRepository', component: ObjectComponent ,
path: 'createReusableFunction', component:
CreateReusableFunctionComponent ,
path: 'createsuitecomponent' ,component: CreatesuiteComponent,
path: 'executionComponent', component: ExecutionComponent ,
path: 'Artificialpath', component: AIComponent ,
path:'suitelevel',component:SuitelevelComponent,
path:'featurelevel',component:FeatureLevelComponent,
path:'scriptlevel',component:ScriptLevelComponent,
path:'steplevel',component:StepLevelComponent,
path: 'NewCreateTestCaseComponent', component:
NewCreateTestCaseComponent,
children: [
path:'check',component:StepLevelComponent
]
]
,
path: 'projectSelection', component: SelectionComponent ,
path: 'logincomponent', component: LoginComponent ,
path: 'createsuitecomponent', component: CreatesuiteComponent ,
path: 'executionComponent', component: ExecutionComponent ,
];
angular
could you share your routing code?
– Bhagwat Tupe
Mar 28 at 12:30
i update the question please find my routings
– manish singh
Mar 28 at 12:40
Where is the route for theuploads
url you are trying to access?
– Massimiliano Sartoretto
Mar 28 at 12:47
"/uploads/dockerExcecutionDependency/vnc.html" is the path which i want to navigate and it is stored in my project folder
– manish singh
Mar 28 at 12:55
add a comment
|
Hi In my code i am navigating to different html page when i get a reply from my Server.All the things are working fine before i updating my angular version 5 to 7. After version upgradation same code is throwing the below error.
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'uploads/dockerExcecutionDependency/vnc.html'
Error: Cannot match any routes. URL Segment: 'uploads/dockerExcecutionDependency/vnc.html'
at ApplyRedirects.push../node_modules/@angular/router/esm5/router.js.ApplyRedirects.noMatchError (router.js:1765)
at CatchSubscriber.selector (router.js:1730)
at CatchSubscriber.push../node_modules/rxjs/_esm5/internal/operators/catchError.js.CatchSubscriber.error (catchError.js:34)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at TapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/tap.js.TapSubscriber._error (tap.js:61)
at resolvePromise (zone.js:814)
at resolvePromise (zone.js:771)
at zone.js:873
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:14051)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)
Please find my component code which i am sending the url to my html after getting reply from the server
ngOnInit()
this.dockerIpPort();
///////////////////////
dockerIpPort()
var objDocker=;
objDocker["ipAddress"]="192.168.99.100";
objDocker["vncPort"]="32768";
objDocker["vncPassword"]="secret";
this.servicekey.dockerIpPortServiceCall(objDocker).subscribe(
result =>
let url = "/uploads/dockerExcecutionDependency/vnc.html"
this.dockerPath09 =
this.sanitizer.bypassSecurityTrustResourceUrl(url);
document.getElementById("activateDockerButton").click();
);
//dockerIpPort
html code where i am using the url to navigation.
<div>
<div class = "modal fade" id = "myModal04">
<div class = "modal-dialog modal-lg">
<div class = "modal-content docker">
<div class="modal-footer dockerFooter">
<p>Close</p>
<button type="button" class="btn btn-default dockerClose" data-dismiss="modal"><span class="glyphicon glyphicon-remove-circle"></span></button>
</div>
<div class = "modal-body dockerbody">
<iframe [src]="dockerPath09" height="100%" width="100%">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</div>
<!-- myModal04 -->
Please Suggest me a better approach to fix this Error. Thanks in Advance
please Find app.module.ts file
import BrowserModule from '@angular/platform-browser';
import NgModule from '@angular/core';
import Router from '@angular/router';
import RouterModule, Routes from '@angular/router';
import HttpModule from '@angular/http';
import FormsModule from '@angular/forms';
import FileDropModule from 'ngx-file-drop';
import HttpClientModule from '@angular/common/http';
import AppComponent from './app.component';
import HeaderComponent from './header.component';
import LoginComponent from './login.component';
import ProjectDetailComponent from './pDetail.component';
import LoginServiceComponent from './login.service';
import ProjectSelectionServiceComponent from
'./projectSelection.service';
import SelectionComponent from './projectSelection.component';
import ModuleComponent from './module.component';
import FeatureComponent from './featurePage.component';
import TestExecutionComponent from './testExecution.component';
import BrowserAnimationsModule from '@angular/platform-
browser/animations';
import apiServiceComponent from './apiService';
import ReactiveFormsModule from '@angular/forms';
import ObjectComponent from './object.component';
import PageNameComponent from './pageName.component';
import ObjectNameComponent from './objectName.component';
import ObjectServiceComponent from './object.service';
import CaptureLabComponent from './captureLab.component';
import ImportProjectComponent from './importProject.component';
import ModuleServiceComponent from './modulePage.service';
import FeatureServiceComponent from './featurePage.service';
import ImportComponent from './importPage.component';
import ImportServiceComponent from './importPage.service';
import ProjectDetailServiceComponent from './pDetail.service'
import AmazingTimePickerModule from 'amazing-time-picker';
import ScriptImportComponent from './script-import/script-
import.component';
import EditComponent from './edit/edit.component';
import CreateTestCaseComponent from './create-test-case/create-
test-
case.component';
import ReportComponent from './report/report.component';
import ObjectCreationComponent from './object-creation/object-
creation.component';
import CreateReusableFunctionComponent from './create-reusable-
function/create-reusable-function.component'; // this line you need
import CreatesuiteComponent from './createsuite.component';
import ExecutionComponent from './execution.component';
import AIComponent from './ai/ai.component';
import TestCaseCommonService from './test-case-common.service'
import NewCreateTestCaseComponent from './new-create-test-
case/new-create-test-case.component';
import Ng2GoogleChartsModule from 'ng2-google-charts';
import SuitelevelComponent from
'./suitelevel/suitelevel.component';
import FeatureLevelComponent from './feature-level/feature-
level.component';
import ScriptLevelComponent from './script-level/script-
level.component';
import StepLevelComponent from './step-level/step-level.component';
import ChartModule from 'angular2-chartjs';
import ExecutionService from './service/execution.service';
import GraphReportService from './service/graph-report.service';
import ShContextMenuModule from 'ng2-right-click-menu';
const appRoutes: Routes = [
path: 'ImportPage', component: ImportComponent ,
path: 'createProject', component: ImportProjectComponent ,
path: '', component: ProjectDetailComponent,
children: [
path: 'CreateModule', component: ModuleComponent ,
path: 'CreateFeature', component: FeatureComponent ,
path: 'importComponent', component: ImportComponent ,
path: 'editComponent', component: EditComponent ,
path: 'createTestCaseComponent', component: CreateTestCaseComponent
,
path: 'captureLabComponent', component: CaptureLabComponent ,
path: 'testExcecutionComponent', component: TestExecutionComponent
,
path: 'reportComponent', component: ReportComponent ,
path: 'objectCreationComponent', component: ObjectCreationComponent
,
path: 'objectRepository', component: ObjectComponent ,
path: 'createReusableFunction', component:
CreateReusableFunctionComponent ,
path: 'createsuitecomponent' ,component: CreatesuiteComponent,
path: 'executionComponent', component: ExecutionComponent ,
path: 'Artificialpath', component: AIComponent ,
path:'suitelevel',component:SuitelevelComponent,
path:'featurelevel',component:FeatureLevelComponent,
path:'scriptlevel',component:ScriptLevelComponent,
path:'steplevel',component:StepLevelComponent,
path: 'NewCreateTestCaseComponent', component:
NewCreateTestCaseComponent,
children: [
path:'check',component:StepLevelComponent
]
]
,
path: 'projectSelection', component: SelectionComponent ,
path: 'logincomponent', component: LoginComponent ,
path: 'createsuitecomponent', component: CreatesuiteComponent ,
path: 'executionComponent', component: ExecutionComponent ,
];
angular
Hi In my code i am navigating to different html page when i get a reply from my Server.All the things are working fine before i updating my angular version 5 to 7. After version upgradation same code is throwing the below error.
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'uploads/dockerExcecutionDependency/vnc.html'
Error: Cannot match any routes. URL Segment: 'uploads/dockerExcecutionDependency/vnc.html'
at ApplyRedirects.push../node_modules/@angular/router/esm5/router.js.ApplyRedirects.noMatchError (router.js:1765)
at CatchSubscriber.selector (router.js:1730)
at CatchSubscriber.push../node_modules/rxjs/_esm5/internal/operators/catchError.js.CatchSubscriber.error (catchError.js:34)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (Subscriber.js:79)
at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (Subscriber.js:59)
at TapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/tap.js.TapSubscriber._error (tap.js:61)
at resolvePromise (zone.js:814)
at resolvePromise (zone.js:771)
at zone.js:873
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:14051)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)
Please find my component code which i am sending the url to my html after getting reply from the server
ngOnInit()
this.dockerIpPort();
///////////////////////
dockerIpPort()
var objDocker=;
objDocker["ipAddress"]="192.168.99.100";
objDocker["vncPort"]="32768";
objDocker["vncPassword"]="secret";
this.servicekey.dockerIpPortServiceCall(objDocker).subscribe(
result =>
let url = "/uploads/dockerExcecutionDependency/vnc.html"
this.dockerPath09 =
this.sanitizer.bypassSecurityTrustResourceUrl(url);
document.getElementById("activateDockerButton").click();
);
//dockerIpPort
html code where i am using the url to navigation.
<div>
<div class = "modal fade" id = "myModal04">
<div class = "modal-dialog modal-lg">
<div class = "modal-content docker">
<div class="modal-footer dockerFooter">
<p>Close</p>
<button type="button" class="btn btn-default dockerClose" data-dismiss="modal"><span class="glyphicon glyphicon-remove-circle"></span></button>
</div>
<div class = "modal-body dockerbody">
<iframe [src]="dockerPath09" height="100%" width="100%">
<p>Your browser does not support iframes.</p>
</iframe>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</div>
<!-- myModal04 -->
Please Suggest me a better approach to fix this Error. Thanks in Advance
please Find app.module.ts file
import BrowserModule from '@angular/platform-browser';
import NgModule from '@angular/core';
import Router from '@angular/router';
import RouterModule, Routes from '@angular/router';
import HttpModule from '@angular/http';
import FormsModule from '@angular/forms';
import FileDropModule from 'ngx-file-drop';
import HttpClientModule from '@angular/common/http';
import AppComponent from './app.component';
import HeaderComponent from './header.component';
import LoginComponent from './login.component';
import ProjectDetailComponent from './pDetail.component';
import LoginServiceComponent from './login.service';
import ProjectSelectionServiceComponent from
'./projectSelection.service';
import SelectionComponent from './projectSelection.component';
import ModuleComponent from './module.component';
import FeatureComponent from './featurePage.component';
import TestExecutionComponent from './testExecution.component';
import BrowserAnimationsModule from '@angular/platform-
browser/animations';
import apiServiceComponent from './apiService';
import ReactiveFormsModule from '@angular/forms';
import ObjectComponent from './object.component';
import PageNameComponent from './pageName.component';
import ObjectNameComponent from './objectName.component';
import ObjectServiceComponent from './object.service';
import CaptureLabComponent from './captureLab.component';
import ImportProjectComponent from './importProject.component';
import ModuleServiceComponent from './modulePage.service';
import FeatureServiceComponent from './featurePage.service';
import ImportComponent from './importPage.component';
import ImportServiceComponent from './importPage.service';
import ProjectDetailServiceComponent from './pDetail.service'
import AmazingTimePickerModule from 'amazing-time-picker';
import ScriptImportComponent from './script-import/script-
import.component';
import EditComponent from './edit/edit.component';
import CreateTestCaseComponent from './create-test-case/create-
test-
case.component';
import ReportComponent from './report/report.component';
import ObjectCreationComponent from './object-creation/object-
creation.component';
import CreateReusableFunctionComponent from './create-reusable-
function/create-reusable-function.component'; // this line you need
import CreatesuiteComponent from './createsuite.component';
import ExecutionComponent from './execution.component';
import AIComponent from './ai/ai.component';
import TestCaseCommonService from './test-case-common.service'
import NewCreateTestCaseComponent from './new-create-test-
case/new-create-test-case.component';
import Ng2GoogleChartsModule from 'ng2-google-charts';
import SuitelevelComponent from
'./suitelevel/suitelevel.component';
import FeatureLevelComponent from './feature-level/feature-
level.component';
import ScriptLevelComponent from './script-level/script-
level.component';
import StepLevelComponent from './step-level/step-level.component';
import ChartModule from 'angular2-chartjs';
import ExecutionService from './service/execution.service';
import GraphReportService from './service/graph-report.service';
import ShContextMenuModule from 'ng2-right-click-menu';
const appRoutes: Routes = [
path: 'ImportPage', component: ImportComponent ,
path: 'createProject', component: ImportProjectComponent ,
path: '', component: ProjectDetailComponent,
children: [
path: 'CreateModule', component: ModuleComponent ,
path: 'CreateFeature', component: FeatureComponent ,
path: 'importComponent', component: ImportComponent ,
path: 'editComponent', component: EditComponent ,
path: 'createTestCaseComponent', component: CreateTestCaseComponent
,
path: 'captureLabComponent', component: CaptureLabComponent ,
path: 'testExcecutionComponent', component: TestExecutionComponent
,
path: 'reportComponent', component: ReportComponent ,
path: 'objectCreationComponent', component: ObjectCreationComponent
,
path: 'objectRepository', component: ObjectComponent ,
path: 'createReusableFunction', component:
CreateReusableFunctionComponent ,
path: 'createsuitecomponent' ,component: CreatesuiteComponent,
path: 'executionComponent', component: ExecutionComponent ,
path: 'Artificialpath', component: AIComponent ,
path:'suitelevel',component:SuitelevelComponent,
path:'featurelevel',component:FeatureLevelComponent,
path:'scriptlevel',component:ScriptLevelComponent,
path:'steplevel',component:StepLevelComponent,
path: 'NewCreateTestCaseComponent', component:
NewCreateTestCaseComponent,
children: [
path:'check',component:StepLevelComponent
]
]
,
path: 'projectSelection', component: SelectionComponent ,
path: 'logincomponent', component: LoginComponent ,
path: 'createsuitecomponent', component: CreatesuiteComponent ,
path: 'executionComponent', component: ExecutionComponent ,
];
angular
angular
edited Mar 28 at 12:53
manish singh
asked Mar 28 at 12:29
manish singhmanish singh
11 bronze badge
11 bronze badge
could you share your routing code?
– Bhagwat Tupe
Mar 28 at 12:30
i update the question please find my routings
– manish singh
Mar 28 at 12:40
Where is the route for theuploads
url you are trying to access?
– Massimiliano Sartoretto
Mar 28 at 12:47
"/uploads/dockerExcecutionDependency/vnc.html" is the path which i want to navigate and it is stored in my project folder
– manish singh
Mar 28 at 12:55
add a comment
|
could you share your routing code?
– Bhagwat Tupe
Mar 28 at 12:30
i update the question please find my routings
– manish singh
Mar 28 at 12:40
Where is the route for theuploads
url you are trying to access?
– Massimiliano Sartoretto
Mar 28 at 12:47
"/uploads/dockerExcecutionDependency/vnc.html" is the path which i want to navigate and it is stored in my project folder
– manish singh
Mar 28 at 12:55
could you share your routing code?
– Bhagwat Tupe
Mar 28 at 12:30
could you share your routing code?
– Bhagwat Tupe
Mar 28 at 12:30
i update the question please find my routings
– manish singh
Mar 28 at 12:40
i update the question please find my routings
– manish singh
Mar 28 at 12:40
Where is the route for the
uploads
url you are trying to access?– Massimiliano Sartoretto
Mar 28 at 12:47
Where is the route for the
uploads
url you are trying to access?– Massimiliano Sartoretto
Mar 28 at 12:47
"/uploads/dockerExcecutionDependency/vnc.html" is the path which i want to navigate and it is stored in my project folder
– manish singh
Mar 28 at 12:55
"/uploads/dockerExcecutionDependency/vnc.html" is the path which i want to navigate and it is stored in my project folder
– manish singh
Mar 28 at 12:55
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55397677%2fangular-7-core-js12501-error-error-uncaught-in-promise-error-cannot-match%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55397677%2fangular-7-core-js12501-error-error-uncaught-in-promise-error-cannot-match%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
could you share your routing code?
– Bhagwat Tupe
Mar 28 at 12:30
i update the question please find my routings
– manish singh
Mar 28 at 12:40
Where is the route for the
uploads
url you are trying to access?– Massimiliano Sartoretto
Mar 28 at 12:47
"/uploads/dockerExcecutionDependency/vnc.html" is the path which i want to navigate and it is stored in my project folder
– manish singh
Mar 28 at 12:55