nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3k stars 605 forks source link

'content:file:beforeParse' hook is not work #2636

Closed Jimi1126 closed 1 month ago

Jimi1126 commented 1 month ago

Environment


Reproduction

I can't provide this as the repository is private. This will be simple. When running "nuxt dev", the plugin is loaded but the hook cannot enter.

Describe the bug

the plugin

image

nuxt.config.js

image

terminal

image

As shown in the picture, only 'loaded plugins' were printed without' content: file: beforeParse '.

I configured it according to the official document. Did I configure it incorrectly? thanks.

Additional context

No response

Logs

No response

Jimi1126 commented 1 month ago

Environment

  • Operating System: Windows_NT
  • Node Version: v21.7.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: pnpm@9.0.1
  • Builder: -
  • User Config: devtools, modules, ssr, nitro, app, webpack, content, site, ogImage, sitemap, robots, seoExperiments, schemaOrg, linkChecker
  • Runtime Modules: @nuxt/content@2.12.1, @nuxt/ui@2.16.0, @nuxtjs/seo@2.0.0-rc.10
  • Build Modules: -

Reproduction

I can't provide this as the repository is private. This will be simple. When running "nuxt dev", the plugin is loaded but the hook cannot enter.

Describe the bug

the plugin

image

nuxt.config.js

image

terminal

image

As shown in the picture, only 'loaded plugins' were printed without' content: file: beforeParse '.

I configured it according to the official document. Did I configure it incorrectly? thanks.

Additional context

No response

Logs

No response

I have found the reason, it was caused by caching. Deleting the. text file will allow to enter hook.