Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when changing case of import filename #3430

Open
4 tasks done
reneroth opened this issue May 9, 2022 · 0 comments
Open
4 tasks done

Error when changing case of import filename #3430

reneroth opened this issue May 9, 2022 · 0 comments

Comments

@reneroth
Copy link

reneroth commented May 9, 2022

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: macOS 12.3.1 (most recent as of writing)
  • Vetur version: v0.35.0 (most recent as of writing)
  • VS Code version: 1.67.0 (most recent as of writing)

Problem

Changing the casing of an import will cause Vetur to report an error:

Already included file name 'Foobar.vue' differs from file name 'FooBar.vue' only in casing.

Reproducible Case

reneroth/vetur-import-rename-issue@d944225

  • open Test.vue
  • change line 9 from import Foobar from './Foobar.vue' to import Foobar from './FooBar.vue'
  • save file
  • change line 9 back from import Foobar from './FooBar.vue' to import Foobar from './Foobar.vue'
  • Vetur will show an error for that line until VS Code is restarted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants