Vue: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed. #2643
Unanswered
stephane303
asked this question in
Help and Questions
Replies: 1 comment
-
Have run into this same issue. I don't think there's another way unfortunately. But I think defining the type (although adding a small amount of work) helps the TS language server out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running into this error on a brand new project in vue3.
"typescript": "~5.4.0",
"pinia": "^2.1.7",
"vue": "^3.4.21"
And I am getting this error from Typescript:
Vue: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.
I only manage to get rid of it defining a State type, is there another way ?
Beta Was this translation helpful? Give feedback.
All reactions