-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
<script setup generic="...">
is broken in Vue 3.4.0
#9890
Labels
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Vue version
3.4.0-beta.4
Link to minimal reproduction
https://play.vuejs.org/#eNqVU8tu2zAQ/BWCZ4sq4JxcN0hbpEB7aIs0R14UcaMw5QvLlWMg8L93SdmpZARBexK5MxzNDpfP8mNKajeC3MgtgU+uI7jUQYdtu9zmHm0i4bowfNCSspYiA43pSJ5g3sgVg30M93ZQjzkGFn7WQQgt++iTdYA/EtkYWGAjKlKwzrn49K3WCEdYner9A/S/X6k/5n2pafkTIQPuQMsXjDocgCb4+td32PP6BfTRjI7Zb4A3kKMbi8eJ9mkMhm3PeNXtV58ikg3Dbb7eE4R8aqoYLcxD5WvJ6X5+o/W/dtdqXc/pcOAUbdVvfJfOcpyApQj/YzL7QJTypm17E/iYAWd3qAJQG5Jvr5jW4hjIemhM9FdrdaHeNXdAnbpojc00RxVk39xhfOKAVcJoWHAWQtGq0WODEAxgiejfLJwde8XGGWNhpbiY5VSyPU3wcUjrYIoBAqDteVpvBd8zS2VxA31Es82EfHErMX0vteTBnWIVX2IU9xg9N6Ja3hRpLd8vZpw3s8chxNbYXV3wMrtIop3K3EupL54SOz6qnj25/5Q5/AFjokEt
Steps to reproduce
Open
Comp.vue
component, select Vue 3.4.0-beta.4, and make some edit (add a space for example) to trigger the compiler.Then, if you replace
generic="T extends Record<string, string>"
withgeneric="T extends object"
, the problem disappear.Removing
import Foo from "./Foo.vue"
make the error to disappear too.What is expected?
generic="..."
should accept anyextends
What is actually happening?
generic="..."
no longer accepts to extends another generic type (containing a<
character)System Info
Any additional comments?
I tried all versions of 3.4 and the problem seems to have appeared in
3.4.0-alpha.2
.Use the version selector on top right, choose
alpha.1
, make some edit to recompile (add a space anywhere for example) => Problem gone.Choose
alpha.2
, make some edit => Problem is back.The text was updated successfully, but these errors were encountered: