N
N
Nightmare0582021-01-30 17:16:25
Laravel
Nightmare058, 2021-01-30 17:16:25

Why is the Vue component not rendered after authentication?

Good afternoon.
Essence of the question: there was a view where I connected a VueJS component to work with api.
Decided to add registration.
After entering the site, the template does not display the component that I need, although the view itself is pulled up.
What did I do wrong?)
The code of this view:

@extends('layouts.app')

@section('content')

    <div id="app">
        <item-component></item-component>
    </div>
<script src="./js/app.js"></script>
@endsection

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nightmare058, 2021-01-30
@Nightmare058

Figured it out
php artisan ui vue --auth overwrote the app.js file where the components are connected, removing my components.
I just specified the required component again and it worked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question