Answer the question
In order to leave comments, you need to log in
How to understand where the error in VueJS is NuxtJS?
/www/client/layouts/error.vue
11:9 error Expected indentation of 2 spaces but found 4 indent
13:10 error Newline required at end of file but not found eol-last
<template>
<div class="container">
<h1 v-if="error.statusCode === 404">Страница не найдена</h1>
<h1 v-else>Произошла ошибка</h1>
<nuxt-link to="/">Вернуться на главную</nuxt-link>
</div>
</template>
<script>
export default {
props: ['error']
}
</script>
Answer the question
In order to leave comments, you need to log in
This is your linter swearing, move the props two spaces to the left, add a line feed at the end of the file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question