TS2590 - Expression produces a union type that is too complex to represent #10143
Unanswered
SebastiaoAlterdata
asked this question in
Help/Questions
Replies: 1 comment
-
What is the type of imported |
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
Uh oh!
There was an error while loading. Please reload this page.
-
VSCode
"vue": "^3.4.9"
"typescript": "^5.3.3"
Details
Hi guys!
I have a problem with the 5+ version of TS in my vue project. When I try to define a custom element in my main.ce.ts and my component has defineEmits, I'm getting a TS error -> Expression produces a union type that is too complex to represent. I tried to config Select Typescript Version but it didn't work.
Simple Component
main.ce.ts
The project to test -> https://github.com/SebastiaoAlterdata/vue-ts-error.git
If I remove the defineEmits in the TestComponent, it works normally.
Any idea to about this problem?
Beta Was this translation helpful? Give feedback.
All reactions