Error in Vue.js build in Laravel

0

I'm getting the following error when saving the app.js file:

link

The files are these:

app.js:

require('./bootstrap');

window.Vue = require('vue');

Vue.component('example-component', require('./components/ExampleComponent.vue'));
Vue.component('topo',require('./components/Topo.vue'));


const app = new Vue({
    el: '#app'
});

Topo.vue:

<template>
    <nav class="navbar navbar-expand-md navbar-light navbar-laravel">
        <div class="container">
            <a class="navbar-brand" v-bind:href="url">
                {{ titulo }}
            </a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <!-- Left Side Of Navbar -->
                <ul class="navbar-nav mr-auto">

                </ul>

                <!-- Right Side Of Navbar -->
                <ul class="navbar-nav ml-auto">

                </ul>
            </div>
        </div>
    </nav>
</template>

<script>
export default {
    props:['titulo','url']
}
</script>

The error only happens when I put the line "Vue.component('topo',require('./components/Topo.vue'));" no app.js

Does anyone know what the problem is?

    
asked by anonymous 07.11.2018 / 19:03

1 answer

1

The error was in <button> in

aria-label="{{ __('Toggle navigation') }}"

The correct one would be:

aria-label="('Toggle navigation')"
    
08.11.2018 / 15:30