From: Eduardo San Martin Morote Date: Fri, 10 Jun 2022 09:21:03 +0000 (+0200) Subject: feat(devtools): warn against old devtools version X-Git-Tag: v4.1.0~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8462551c6b9354772689e56d3718375f3211b0eb;p=thirdparty%2Fvuejs%2Frouter.git feat(devtools): warn against old devtools version See #1338 --- diff --git a/packages/router/src/devtools.ts b/packages/router/src/devtools.ts index a7d4f4e1..ea20cdca 100644 --- a/packages/router/src/devtools.ts +++ b/packages/router/src/devtools.ts @@ -72,6 +72,12 @@ export function addDevtools(app: App, router: Router, matcher: RouterMatcher) { app, }, api => { + if (typeof api.now !== 'function') { + console.warn( + '[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.' + ) + } + // display state added by the router api.on.inspectComponent((payload, ctx) => { if (payload.instanceData) {