I'm currently following a tutorial on YouTube for setting up Vue and Laravel.
My resources folder structure looks like this so far:
- resources
- js
- app.js
- vue
-app.vue
In my app.js
file:
require('./bootstrap');
import Vue from 'vue'
import App from './vue/app'
const app = new Vue({
el : "#app",
components : { App }
});
As for the app.vue
file:
<template>
<div>
Hello World
</div>
</template>
<script>
export default {
}
</script>
When I try running npm run hot
,
I encounter an error message:
Module not found: Error: Can't resolve './vue/app' in 'C:\xampp\htdocs\test-app\resources\js'
If anyone could provide assistance, it would be greatly appreciated.