]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix: correct url for production error reference links
authorEvan You <yyx990803@gmail.com>
Thu, 18 Jan 2024 12:00:01 +0000 (20:00 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 18 Jan 2024 12:00:01 +0000 (20:00 +0800)
packages/compiler-core/src/errors.ts
packages/runtime-core/src/errorHandling.ts

index 257bc64faaacdbfa1249ea51d1d87c0cc15e0014..6728a80d44a94c8c2755ee4524eb6cb60978c2d6 100644 (file)
@@ -30,7 +30,7 @@ export function createCompilerError<T extends number>(
   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<T>
   error.code = code
   error.loc = loc
index 11d44a1ced156e77103f91c1a2046bb706f07f1b..a1ed69cc3c22041b29aecbe6c7516e46cbbba432 100644 (file)
@@ -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) {