Back to Vuejs

Production Error Code Reference {#error-reference}

src/error-reference/index.md

latest1.1 KB
Original Source
<script setup> import { ref, onMounted } from 'vue' import { data } from './errors.data.ts' import ErrorsTable from './ErrorsTable.vue' const highlight = ref() onMounted(() => { highlight.value = location.hash.slice(1) }) </script>

Production Error Code Reference {#error-reference}

Runtime Errors {#runtime-errors}

In production builds, the 3rd argument passed to the following error handler APIs will be a short code instead of the full information string:

The following table maps the codes to their original full information strings.

<ErrorsTable kind="runtime" :errors="data.runtime" :highlight="highlight" />

Compiler Errors {#compiler-errors}

The following table provides a mapping of the production compiler error codes to their original messages.

<ErrorsTable kind="compiler" :errors="data.compiler" :highlight="highlight" />