Skip to content

Script Setup - Class constructor [class] cannot be invoked without 'new' #6480

Discussion options

You must be logged in to vote

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!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alexbot89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants