0

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:\xampp\htdocs\test-app\resources\js'

Any help would be appreciated.

1
  • import App from './vue/app.vue' Just specified the .vuew extension and try Commented Oct 14, 2021 at 7:47

1 Answer 1

0

Rename your app.vue to App.vue

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.