Skip to content
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

[v3] Bug: ctx.file.extension is undefined in content:file:beforeParse #2970

Closed
maximepvrt opened this issue Jan 14, 2025 · 0 comments
Closed

Comments

@maximepvrt
Copy link
Contributor

Environment

Reproduction

hooks: {
  'content:file:beforeParse'(ctx) {
    console.log(ctx.file.extension) // Logs undefined
  },
}

Describe the bug

When using the content:file:beforeParse hook in Nuxt Content v3, the ctx.file.extension property is undefined. This is problematic when trying to condition actions based on the file extension.

Additional context

No response

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant