C
C
chelkaz2017-06-23 14:42:48
Vue.js
chelkaz, 2017-06-23 14:42:48

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

The template itself to which the error refers is here, it is also taken from of, examples:
<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

1 answer(s)
E
Evgeny Kulakov, 2017-06-23
@chelkaz

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 question

Ask a Question

731 491 924 answers to any question