From c3087ff2cce7d96c60a870f8233441311ab4dfb4 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 18 Jan 2024 20:00:01 +0800 Subject: [PATCH] fix: correct url for production error reference links --- packages/compiler-core/src/errors.ts | 2 +- packages/runtime-core/src/errorHandling.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler-core/src/errors.ts b/packages/compiler-core/src/errors.ts index 257bc64faaa..6728a80d44a 100644 --- a/packages/compiler-core/src/errors.ts +++ b/packages/compiler-core/src/errors.ts @@ -30,7 +30,7 @@ export function createCompilerError( const msg = __DEV__ || !__BROWSER__ ? (messages || errorMessages)[code] + (additionalMessage || ``) - : `https://vuejs.org/errors/#compiler-${code}` + : `https://vuejs.org/error-reference/#compiler-${code}` const error = new SyntaxError(String(msg)) as InferCompilerError error.code = code error.loc = loc diff --git a/packages/runtime-core/src/errorHandling.ts b/packages/runtime-core/src/errorHandling.ts index 11d44a1ced1..a1ed69cc3c2 100644 --- a/packages/runtime-core/src/errorHandling.ts +++ b/packages/runtime-core/src/errorHandling.ts @@ -112,7 +112,7 @@ export function handleError( // in production the hook receives only the error code const errorInfo = __DEV__ ? ErrorTypeStrings[type] - : `https://vuejs.org/errors/#runtime-${type}` + : `https://vuejs.org/error-reference/#runtime-${type}` while (cur) { const errorCapturedHooks = cur.ec if (errorCapturedHooks) {