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

after upgrade to 3.4.26, got error TS2589: Type instantiation is excessively deep and possibly infinite #10845

Closed
coader opened this issue Apr 30, 2024 · 5 comments
Labels
can't reproduce need more info Further information is requested

Comments

@coader
Copy link

coader commented Apr 30, 2024

Vue version

3.4.26

Link to minimal reproduction

none

Steps to reproduce

if use function in dynamic style and use 'item' of v-for, got those error when build

  <li v-for="(step, index) in stepList" :key="step.name" 
        :style="{
          '--step-color': getStepColor(step, index), 
        }">

even if getStepColor is empty function, still got error
and if change to getStepColor(index), build successed.

and It's fine in 3.4.25

What is expected?

do not throw error

What is actually happening?

error TS2589: Type instantiation is excessively deep and possibly infinite

image

System Info

No response

Any additional comments?

No response

@yyx990803
Copy link
Member

There aren't any type-related changes in 3.2.46: https://github.com/vuejs/core/blob/main/CHANGELOG.md#3426-2024-04-29

Please provide a valid and complete reproduction.

@yyx990803 yyx990803 added the need more info Further information is requested label Apr 30, 2024
@coader
Copy link
Author

coader commented May 1, 2024

only have upgraded those libraries, then build failed:
image

@yyx990803
Copy link
Member

yyx990803 commented May 1, 2024

Can't reproduce. Please provide a repo that actually demonstrates your problem. Suggested reading: https://antfu.me/posts/why-reproductions-are-required

@yyx990803
Copy link
Member

Closing as no follow up has been provided. Please open a new one if proper repro can be provided.

@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
can't reproduce need more info Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants