Description
When a file is renamed, the corresponding imports in .vue files are not automatically updated.
Steps to reproduce
- Create a component, for example MyComponent.vue
- Import it in another file:
import MyComponent from '@/components/MyComponent.vue'
- Rename
MyComponent.vue to MyNewComponent.vue
- 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.
Description
When a file is renamed, the corresponding imports in .vue files are not automatically updated.
Steps to reproduce
MyComponent.vuetoMyNewComponent.vueExpected behavior
Imports should be automatically updated to match the new file name:
Actual behavior
The import remains unchanged, causing a module not found error.