Unhandled Promise rejection: Invalid configuration of route 'PlayerManagement/PlayerMain/:id/': redirectTo and component cannot be used together
$10-30 USD
クローズ
投稿日: 6年以上前
$10-30 USD
完了時にお支払い
- I am upgrading from angular 2 to angular 5
- after upgrading I am getting below three errors.
- I used the below link and did update but still following errors are happening.
- I googled for the error but not able to find anything
- any idea how to fix it.
- it would be great if you let me know how to fix it...so that in future I will fix it by myself
- providing code snippet and [login to view URL] below
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
<!-- language-all: lang-or-tag-here -->
VM3365:34 Unhandled Promise rejection: Invalid configuration of route 'PlayerManagement/PlayerMain/:id/': redirectTo and component cannot be used together ; Zone: <root> ; Task: [login to view URL] ; Value: Error: Invalid configuration of route 'PlayerManagement/PlayerMain/:id/': redirectTo and component cannot be used together
at validateNode ([login to view URL])
at validateConfig ([login to view URL])
at validateNode ([login to view URL])
at validateConfig ([login to view URL])
at validateNode ([login to view URL])
at validateConfig ([login to view URL])
at [login to view URL] ([login to view URL])
at new Router ([login to view URL])
at setupRouter ([login to view URL])
at _callFactory ([login to view URL]) Error: Invalid configuration of route 'PlayerManagement/PlayerMain/:id/': redirectTo and component cannot be used together
at validateNode (webpack:///./node_modules/@angular/router/esm5/[login to view URL]:757:15)
at validateConfig (webpack:///./node_modules/@angular/router/esm5/[login to view URL]:729:9)
at validateNode (webpack:///./node_modules/@angular/router/esm5/[login to view URL]:779:9)
at validateConfig (webpack:///./node_modules/@angular/router/esm5/[login to view URL]:729:9)
at validateNode (webpack:///./node_modules/@angular/router/esm5/[login to view URL]:779:9)
at validateConfig (webpack:///./node_modules/@angular/router/esm5/[login to view URL]:729:9)
at [login to view URL] (webpack:///./node_modules/@angular/router/esm5/[login to view URL]:4958:9)
at new Router (webpack:///./node_modules/@angular/router/esm5/[login to view URL]:4820:14)
at setupRouter (webpack:///./node_modules/@angular/router/esm5/[login to view URL]:7305:35)
at _callFactory (webpack:///./node_modules/@angular/core/esm5/[login to view URL]:11128:28)
Error: Uncaught (in promise): Error: Invalid configuration of route 'PlayerManagement/PlayerMain/:id/': redirectTo and component cannot be used together
at resolvePromise ([login to view URL])
at [login to view URL]
at [login to view URL] ([login to view URL])
at [login to view URL] ([login to view URL])
at drainMicroTaskQueue ([login to view URL])
at [login to view URL] ([login to view URL])
VM3365:36 Uncaught TypeError: Converting circular structure to JSON
at [login to view URL] (<anonymous>)
at [login to view URL] (<anonymous>:36:101)
at consoleError ([login to view URL])
at _loop_1 ([login to view URL])
at drainMicroTaskQueue ([login to view URL])
at [login to view URL] ([login to view URL])
Hello there, We're a team of developers working on Angular, React & Node JS with Laravel since last 4+ years. Please take a look at our review bank.
Have expert people in team who are working currently in Laravel 5.5 with front-end hand-on experience working with Angular and React.
Hi please come for project discussion so we can discuss more in details of the project and start work together I will work in your budget and timeframe as per you require.
Sincerely,
Sneha Kanwar
Hello sir, I am very expert on web design and development. If you came to chat, we can discuss about your job in details. My desire to satisfy my clients. Thanks.
Router will render only one component for each route. If you are using redirectTo as well as component, that means you are telling angular to load two components, which is not possible.
Relevant Skills and Experience
6 months of experience in angular.
1 year experience overall