DEV Community

Discussion on: How to add Vue to a Laravel app?

Collapse
 
kachidk profile image
Nwanguma Victor • Edited

I thing you should uninstall everything about Vue you have installed manually.

All you need to do to get vue running is to make sure this is present. Mix will automatically install the required node modules.

mix.js('resources/js/app.js', 'public/js')
    .vue()
    .sass('resources/sass/app.scss', 'public/css');
Enter fullscreen mode Exit fullscreen mode

And also make sure this is referenced in your app

<head>
    <!-- ... -->

    <script src="/js/app.js"></script>
</head>
Enter fullscreen mode Exit fullscreen mode