T
T
time_is_always_against_us2020-04-17 02:19:19
JavaScript
time_is_always_against_us, 2020-04-17 02:19:19

Where am I going wrong when installing Vuetify?

Following of. documentation, installed Vuitify via vue ui.
5e98e6fba7721322825410.png

At the same time, he added to main.js:
5e98e6a6dd39f082228107.png

But the standard welcome page, which he himself created, looks like this:
5e98e74c80376520472486.png

In the console, there are errors that it cannot find components:
5e98e796a5e3d814481525.png

I tried adding vuitify buttons to my templates - similar errors.

Tell me, please, what am I missing?

UPD:

Reverted all changes and completely reinstalled Vuetify.
Now he sees the components, but there is a problem with the styles.
For example:

<div class="my-2">
            <v-btn small color="primary">Primary</v-btn>
        </div>

Displayed like this:
5e9977b1e44f1913953835.png

Although in index.html he added:
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css">

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
time_is_always_against_us, 2020-04-17
@time_is_always_against_us

1. After an incorrect installation, I completely rolled back all changes in the project (with the help of Git).
2. Removed all installed components in node module:
"vuetify": "^2.2.11",
"vue-cli-plugin-vuetify": "^2.0.5",
"vue-template-compiler": "^2.6. 11",
"vuetify-loader": "^1.3.0"
3. Just like the first time using vue ui set everything to 0. It worked, but there was an error with displaying styles.
The problem is solved through v-app:

<v-app>
  <v-btn color="success">Success</v-btn>
</v-app>

Styles found here:

C
Cheesper, 2020-04-17
@Cheesper

What do you have in ./plugins/vuetify?
there should be
Vue.use(Vuetify)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question