Skip to content

"conflicting files" warning triggered for named views #2648

@JarvisH

Description

@JarvisH

Reproduction

See example

Steps to reproduce the bug

During Vitest unit tests when using named views via the @viewname.vue convention as described here, a warning is shown that "conflicting files" are found for said route.

In the below example a /posts route exists, with a default view index.vue and a named header view.

[vue-router] Conflicting files found for route "/posts":
- /my-app/src/pages/posts/index.vue
- /my-app/src/pages/posts/index@header.vue

Expected behavior

Warning is not triggered for named views during tests.

Actual behavior

Warning is triggered for any named views.

Additional information

Vue-router-mock is used in tests.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions