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

Improve Vue version detection #2740

Merged
merged 1 commit into from
Mar 2, 2021
Merged

Conversation

damianstasik
Copy link
Contributor

I installed Vue with yarn add vue@3 and Yarn added "vue": "3" to package.json and then I configured Vetur to lint my code. For some reason I was getting vue/no-multiple-template-root error in a Vue 3 project, I removed Vue and then reinstalled it, but with a specific version and the error was gone. I changed the regexp inside inferVueVersion to handle such cases where only major version is saved in package.json.

Copy link
Member

@yoyo930021 yoyo930021 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants