Skip to content

.nuxtignore: Either Nuxt 4 does not take into account .nuxtignore folder structure OR the documentation requires updating #28376

@TribeWeb

Description

@TribeWeb

Environment

~/projects/mkliravnrp.github 13m 44s
❯ npx nuxi info
Working directory: /home/projects/mkliravnrp.github 12:12:47
Nuxt project info: 12:12:47


  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: 3.12.4
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.7
  • Package Manager: npm@10.2.3
  • Builder: -
  • User Config: compatibilityDate, devtools, future
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-9ijqfv?file=.nuxtignore

Describe the bug

Either the documentation at https://nuxt.com/docs/guide/directory-structure/nuxtignore requires updating for version 4 compatibility (e.g. by adding a v4 callout box)
Or...
v4 compatibility mode and the new folder structure requires preexisting .nuxtignore files created in v3 to be updated manually

Additional context

.nuxtignore

components/IgnoreMe.vue 
# component will still render

app/components/IgnoreMe.vue  
# component will be ignored

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions