Closed
Description
Vue version
3.2.37
Link to minimal reproduction
Steps to reproduce
- Open link to SFC Playground
- Click the button
- An error
Class constructor [class] cannot be invoked without 'new'
is raised
What is expected?
No error should be visible in <script setup>
as the the equivalent behavior is already working in <script>
What is actually happening?
The code is raising an error Class constructor [class] cannot be invoked without 'new' is raised
System Info
No response
Any additional comments?
See Discussion: #6480