Vue.js build error in Laravel

Asked

Viewed 56 times

0

I am getting the following error while saving the app.js file:

https://imgur.com/a/akBRZ5D

The arches 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.:

<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 mistake only happens when I put the line "Vue.component('topo',require('./components/Topo.vue'));" in the app.js

Does anyone know what the problem is?

1 answer

1

The mistake was in the <button> in

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

the correct would be :

aria-label="('Toggle navigation')"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.