Skip to content

Bug: Renaming a file does not update imports in Vue files #83

@xerox0213

Description

@xerox0213

Description

When a file is renamed, the corresponding imports in .vue files are not automatically updated.

Steps to reproduce

  1. Create a component, for example MyComponent.vue
  2. Import it in another file:
import MyComponent from '@/components/MyComponent.vue'
  1. Rename MyComponent.vue to MyNewComponent.vue
  2. Notice that the import is not updated

Expected behavior

Imports should be automatically updated to match the new file name:

import MyNewComponent from '@/components/MyNewComponent.vue'

Actual behavior

The import remains unchanged, causing a module not found error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions