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

Components options is not set correctly when component name is kebab-case and auto-importing #2745

Closed
vidal7 opened this issue Apr 27, 2023 · 1 comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@vidal7
Copy link

vidal7 commented Apr 27, 2023

In Vue 2.7, with TS 5.04, Volar 1.6.0, with defineComponent (Options API), components options is not set correctly with kebab-case components.

image

import PComponentIssue from './p-component-issue.vue';

is perfect but not in the components options. It should be

export default defineComponent({
    components: { PComponentIssue }
});

For reproduction repo, you can take the same as the issue 2742 (https://github.com/vidal7/volar-issue-2742)

@johnsoncodehk johnsoncodehk added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Apr 27, 2023
@vidal7
Copy link
Author

vidal7 commented Apr 27, 2023

Thank you so much @johnsoncodehk!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

2 participants