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

fix: address transition type incompatibility with Vue 2.7.16 #3882

Merged
merged 4 commits into from Feb 29, 2024

Conversation

rchl
Copy link
Collaborator

@rchl rchl commented Feb 1, 2024

Explained all in #3881

Fixes #3881

@rchl rchl changed the base branch from master to v1 February 1, 2024 16:40
@@ -1365,6 +1365,11 @@ export function generate(
continue;
}

if (vueCompilerOptions.target < 3 && node.tag === 'transition' && prop.name === 'persisted') {
Copy link
Member

Choose a reason for hiding this comment

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

What will happen the tag is Transition?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point. I thought it's normalized by the compiler.

@rchl
Copy link
Collaborator Author

rchl commented Feb 1, 2024

Note that for some reason the error on this test does not reproduce when opening that file in VSCode and I totally don't get why. Seems like generated template doesn't include the persisted property there.

But regardless of that, it's a real issue that shows up with vue-tsc and also with LSP-volar in Sublime Text.

EDIT: I've analyzed and explained that behavior in the linked issue.

@rchl

This comment was marked as outdated.

@rchl

This comment was marked as outdated.

@johnsoncodehk
Copy link
Member

LGTM, thanks!

@johnsoncodehk johnsoncodehk merged commit 89c38ef into vuejs:v1 Feb 29, 2024
3 checks passed
@rchl rchl deleted the fix/transition branch February 29, 2024 15:34
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.

Type issues with Transition and latest Vue 2.x
3 participants