Script Setup - Class constructor [class] cannot be invoked without 'new' #6480
Answered
by
LinusBorg
alexbot89
asked this question in
Help/Questions
-
I noticed this error when migrating from <script> to <script setup> when importing class definitions.
Is this expected? |
Beta Was this translation helpful? Give feedback.
Answered by
LinusBorg
Aug 16, 2022
Replies: 1 comment
-
Hi, This seems to be a bug in the the compiler: // this _unwrap() added by the compiler makes this code invalid
_ctx.$emit('myclick', new _unref(TestClass)()) Please open an issue. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alexbot89
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
This seems to be a bug in the the compiler:
Please open an issue.
Thanks!