I'm getting the following error when saving the app.js file:
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?