Skip to content

Commit c3087ff

Browse files
committed
fix: correct url for production error reference links
1 parent 2ffb956 commit c3087ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/compiler-core/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function createCompilerError<T extends number>(
3030
const msg =
3131
__DEV__ || !__BROWSER__
3232
? (messages || errorMessages)[code] + (additionalMessage || ``)
33-
: `https://vuejs.org/errors/#compiler-${code}`
33+
: `https://vuejs.org/error-reference/#compiler-${code}`
3434
const error = new SyntaxError(String(msg)) as InferCompilerError<T>
3535
error.code = code
3636
error.loc = loc

packages/runtime-core/src/errorHandling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function handleError(
112112
// in production the hook receives only the error code
113113
const errorInfo = __DEV__
114114
? ErrorTypeStrings[type]
115-
: `https://vuejs.org/errors/#runtime-${type}`
115+
: `https://vuejs.org/error-reference/#runtime-${type}`
116116
while (cur) {
117117
const errorCapturedHooks = cur.ec
118118
if (errorCapturedHooks) {

0 commit comments

Comments
 (0)