Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I cant see index page in nuxt2

I’m having trouble solving one of the problems I’ve been given.
I can’t see my index page in the pages folder, where could the problem come from?

index.vue

<template>
 <h1>
  Hello world
 </h1>
</template>

I made another page with about address but it still had this problem.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Update
default.vue

<template>
    <v-app :dark="setTheme" class="d-print-none" :rtl="true">
      <v-toolbar
        dense
        flat
        color="#fafafa00"
        style="position: fixed; top: 0px; right: 0px; z-index: 5;"
      >
        <v-menu offset-y transition="slide-y-transition">
          <template #activator="{ on }">
            <v-btn class="ma-2 d-print-none" small text icon v-on="on">
              <v-icon>mdi-apps</v-icon>
            </v-btn>
            <template>
              <my-menu-app/>
            </template>
          </template>
          <menuCard/>
        </v-menu>
      </v-toolbar>
    </v-app>
</template>

>Solution :

Your problem is your layout.
add Nuxt tag for render your page.

<template>
    <v-app :dark="setTheme" class="d-print-none" :rtl="true">
      <v-toolbar
        dense
        flat
        color="#fafafa00"
        style="position: fixed; top: 0px; right: 0px; z-index: 5;"
      >
        <v-menu offset-y transition="slide-y-transition">
          <template #activator="{ on }">
            <v-btn class="ma-2 d-print-none" small text icon v-on="on">
              <v-icon>mdi-apps</v-icon>
            </v-btn>
            <template>
              <my-menu-app/>
            </template>
          </template>
          <menuCard/>
        </v-menu>
      </v-toolbar>
<Nuxt/>                     // add Nuxt tag in your layout
    </v-app>
</template>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading