NuxtN
Nuxt14mo ago
4 replies
layz

MDC Prose components not rendering on deploy

Environment :
Operating System: Windows_NT
Node Version: v22.11.0
Nuxt Version: 3.14.159
CLI Version: 3.15.0
Nitro Version: 2.10.4
Package Manager: yarn@1.22.22
Builder: -
User Config: default
Runtime Modules: @nuxt/content@3.0.0-alpha.6, @nuxtjs/tailwindcss@6.12.2, @nuxtjs/google-fonts@3.2.0, @vueuse/motion/nuxt@2.2.6, nuxt-time@1.0.2, @pinia/nuxt@0.7.0, pinia-plugin-persistedstate/nuxt, nuxt-gtag@3.0.2, shadcn-nuxt@0.11.3
Build Modules: -

Nuxt content version v3.0.0-alpha.6

Reproduction
Create custom prose components to override default. Like create a ProseA file in components/content folder with the code provide in mdc docs then npx nuxi generate to generate static deployment and preview.

Hello,

When I try to preview my app for deployment using npx nuxi generate, my custom Prose components from the components/content folder are no longer rendering. However, they render correctly in the local environment.

I have nothing special in my nuxt.config to refer to prose components.

Has anyone encountered a similar problem or have any suggestions for troubleshooting?
Was this page helpful?