-
-
Notifications
You must be signed in to change notification settings - Fork 695
Content dir not working with layers #3307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the issue. This should be fixed in #3308. You can test with PR release
Note: There is another issue with your reproduction. The app directory uses compatibilityVersion: 4, and the nuxt-layer does not use it. Both layers should share the same structure. |
@farnabaz Unfortunately this issue does not seem to be fixed :/ The issue is now the exact opposite:
I'd expect that both, the content fron the layer as well as from the app loaded |
What worked for me to load content from app : source: {
cwd: path.resolve('content'),
include: '**/*.md',
}, From layer it should be : source: '**/*.md',
source: ['**/*.md', {
cwd: path.resolve('content'),
include: '**/*.md',
}], |
- fix Playwright version to 1.51.x to fix webkit issues with 1.52.0 - limit `@nuxt/content` module to version `< 3.5.0` since it has an [existing issue](ttps://github.com/nuxt/content/issues/3307) #3214 contains some approaches to try to fix the new issues that were introduced with Playwright 1.52.0 because of the updated webkit version but I haven't managed to fully get it working. So this PR contains all updates/fixes except Playwright. ## Checklist - [x] The added / edited code has been documented with [JSDoc](https://jsdoc.app/about-getting-started) - [x] A changeset is added with `npx changeset add` if your changes should be released as npm package (because they affect the library usage) - [x] I have performed a self review of my code ("Files changed" tab in the pull request) --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Environment
Version
3.4.0
Reproduction
https://stackblitz.com/edit/github-fhf1jy91
Description
When using Nuxt 3 layers, @nuxt/content does not work properly if it's configured inside a layer. The content module is correctly set up within the layer (including the content/ directory and configuration), but the content is not loaded or available in the consuming app.
However, if I move the content/ directory into the app that consumes the layer, everything works as expected.
This suggests that @nuxt/content does not correctly detect or process content from the extended layer.
The text was updated successfully, but these errors were encountered: