Closed DrDBanner closed 2 months ago
Not 100% sure from your reproduction but looks like you've got the content directory inside the new app
directory for compatibility version 4. I think the content
directory needs to be in the rootDir/
instead of srcDir/
. I had a similar issue with markdown files and doing this fixed it for me. This behaviour was changed in #2649, released in v2.13.0
.
Wow. Thanks!
Environment
Darwin
v22.3.0
3.12.2
3.12.0
2.9.7
npm@10.8.1
-
srcDir
,publicRuntimeConfig
,privateRuntimeConfig
,env
,devtools
,devServer
,modules
,css
,bootstrapVueNext
,content
,future
@nuxt/icon@1.0.0
,@nuxt/content@2.13.0
,@bootstrap-vue-next/nuxt@0.22.7
-
Reproduction
nuxt.config.ts
Describe the bug
When compatibility version is set to 4 no data get displayed. If I switch to 3 the data gets displayed. When compatibility version is set to 3 the srcDir: 'app/‚ is mandatory.
Additional context
I'd assume to have it working with version 4 without additional configuration or change in syntax.
Logs
No response