From f921f1e506faa963af1ce354e5403f5ee0673a6d Mon Sep 17 00:00:00 2001 From: Eliphaz BOUYE Date: Tue, 28 Feb 2023 18:28:22 +0000 Subject: [PATCH] fix: Warning of invalid param for catch all route with named route redirect by adding a workaround message who explain how to fix this warning --- packages/router/src/matcher/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/router/src/matcher/index.ts b/packages/router/src/matcher/index.ts index 3d1fec4e1..f26721db3 100644 --- a/packages/router/src/matcher/index.ts +++ b/packages/router/src/matcher/index.ts @@ -266,7 +266,7 @@ export function createRouterMatcher( warn( `Discarded invalid param(s) "${invalidParams.join( '", "' - )}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.` + )}" when navigating. You can hide this warning message by passing an empty object of Params alongside the name of the route. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.` ) } }