Module not found: Error: in Vue and Laravel

Im following a YT video installing a Vue and Laravel. So far the resources forlder … Read more Module not found: Error: in Vue and Laravel

Im following a YT video installing a Vue and Laravel.

So far the resources forlder looks like:

- resources
   - js
       - app.js
       - vue
            -app.vue

On the app.js

require('./bootstrap');

import Vue from 'vue'

import App from './vue/app'

const app = new Vue({
    el : "#app",
    components : { App }
});

On the app.vue

<template>
    <div>
        Hello World
    </div>
</template>

<script>
    export default {
        
    }
</script>

And if I do npm run hot

Im getting an error:

Module not found: Error: Can’t resolve ‘./vue/app’ in
‘C:xampphtdocstest-appresourcesjs’

Any help would be appreciated.

Source: Vue – Stack Overflow


Categories: NewsTags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *