Skip to content

generated routes by the unplugin may include empty routes #2641

@FrontEndDog

Description

@FrontEndDog

Reproduction

https://stackblitz.com/edit/vitejs-vite-61kifdsy?file=src%2Fviews%2Fhome%2Fuser.vue

Steps to reproduce the bug

1.Open the console using F12
2.View console.log output,An empty route appears in /home.

Expected behavior

No empty routes

Actual behavior

An empty route appears in /home.
Image

Additional information

Reproduction Conditions
1.Use beforeWriteFiles delete some route and An empty folder appears.
2.There are other routes in the same-level empty folder.

In the reproduction link I provided, all routes under the component folder have been deleted, and there is a /user route at the same level

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas workaroundA workaround has been found to deal with the issue

    Type

    No type

    Projects

    Status

    🆕 Triaging

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions