Module not found: Error: in Vue and Laravel

  javascript, laravel, vue.js

Im following a YT video installing a Vue and Laravel.

So far the resources forlder looks like:

- resources
   - js
       - app.js
       - vue

On the app.js


import Vue from 'vue'

import App from './vue/app'

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

On the app.vue

        Hello World

    export default {

And if I do npm run hot

Im getting an error:

Module not found: Error: Can’t resolve ‘./vue/app’ in

Any help would be appreciated.

Source: Laravel

Leave a Reply