-
when I start a project freshly new, the routes are broken. the also something weird is that it shows in the terminal that I'm using nuxt rc.8 but in the package.json file it shows nuxt rc.4 I have followed the official nuxt guide to start the project node: v16.16.0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I can confirm the "problem" you described. with {
"devDependencies": {
"@nuxt/content": "^2.0.0",
"nuxt": "^3.0.0-rc.4"
}
} and {
"devDependencies": {
"@nuxt/content": "^2.0.1",
"nuxt": "^3.0.0-rc.8"
}
} My recommendation: add new index.vue in pages directory, example: <template>
<main>
<ContentList path="/">
<!-- ...default slot -->
<template #default="{ list }">
<div v-for="post in list" :key="post._path">
<h2>{{ post.title }}</h2>
<p>{{ post.description }}</p>
LINK:
<nuxt-link :to="post._path">{{ post.title }}</nuxt-link>
</div>
</template>
<template #not-found>
<p>No articles found. ERROR 404</p>
</template>
</ContentList>
<br />
<hr />
<br />
<nuxt-link to="/">HOME</nuxt-link>
</main>
</template> |
Beta Was this translation helpful? Give feedback.
-
You can try using the edge channel until v2.1.0 is released: #1439 For the "problem" with the nuxt version: |
Beta Was this translation helpful? Give feedback.
I can confirm the "problem" you described.
with
and
My recommendation: add new index.vue in pages directory, example: