From: Eduardo San Martin Morote Date: Thu, 18 May 2023 15:47:41 +0000 (+0200) Subject: fix(types): revert declare module vue X-Git-Tag: v4.2.1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8d417a5b81c94aa5eb252782b07cb2b471d3a4e;p=thirdparty%2Fvuejs%2Frouter.git fix(types): revert declare module vue This seems to be causing problems without fixing any. I'm reverting this to avoid any more trouble until we can figure out a better rollout strategy. --- diff --git a/packages/router/src/globalExtensions.ts b/packages/router/src/globalExtensions.ts index 55a6687c..36897857 100644 --- a/packages/router/src/globalExtensions.ts +++ b/packages/router/src/globalExtensions.ts @@ -8,7 +8,8 @@ import { RouterLink } from './RouterLink' import type { Router } from './router' import type { TypesConfig } from './config' -declare module 'vue' { +// TODO: figure out why it cannot be 'vue' like said in docs +declare module '@vue/runtime-core' { export interface ComponentCustomOptions { /** * Guard called when the router is navigating to the route that is rendering