Open retroriff opened 2 years ago
It works for me.
npx nuxi generate
Once generated, with VS Code and the Live Server plugin installed :
cd dist/
code .
Into VS Code : “Go live” in the bottom-right corner.
@Icesofty That's weird. When you toggle, do you see "Hello, world" or "Not found"?
@Icesofty That's weird. When you toggle, do you see "Hello, world" or "Not found"?
Ho, I got it. I have a “Not found” message indeed. I tough it was an error page. I don't why, will check tomorrow.
I guess that you could use a v-show instead of a v-if inside your index.vue as a temporary solution.
Hiding them with v-show is not a solution to us because we don't want those components to be rendered. As I said, it works perfectly on nuxt dev
, and used to work on Nuxt 2.
It is working properly.
@ManasMadrecha Are you building it with "dev" or "generate"?
Hey, it's working only on dev
; on generate
, it's showing Not Found.
This issue is relevant even on latest edge versions of both Nuxt (rc-14) and Content module as on today.
Environment
Darwin
v16.17.0
3.0.0-rc.11
0.5.4
yarn@1.22.19
vite
ssr
,modules
,i18n
@nuxt/content@2.1.1
,@nuxtjs/i18n@8.0.0-alpha.1-27728149.88b6dfd
-
Reproduction
https://stackblitz.com/github/retroriff/nuxt-refresh
Describe the bug
When a component is displayed conditionally, it returns a 404 with "nuxt generate", but it works on
yarn dev
. The v-if generates the error:<PrivacyPolicy v-if="showComponent" />
Additional context
No response
Logs
No response