I have recently set up a Laravel project and am attempting to integrate Vue.js into it. After running the following commands in my terminal:
npm install
npm run dev
The commands executed without any errors. However, when I tried to import the default Vue component located at
~/ressources/assets/components/ExampleComponent.vue
in my template, nothing seems to happen.
@section('content')
<example-component></example-component>
@endsection
Below is the app.js code snippet:
require('./bootstrap');
window.Vue = require('vue');
Vue.component('example-component', require('./components/ExampleComponent.vue'));
const app = new Vue({
el: '#app'
});