0
I am getting the following error while saving the app.js file:
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?