swc icon indicating copy to clipboard operation
swc copied to clipboard

TypeError: Class constructor App cannot be invoked without 'new'

Open 2Steaks opened this issue 3 years ago • 0 comments

Hi, I'm trying to use this to test a Next.js application where we are testing the actual App page component, however I am getting the following error TypeError: Class constructor App cannot be invoked without 'new' I've tried configuring the .swcrc in multiple ways but without success. Has anyone experienced this with class components?

2Steaks avatar Nov 04 '21 11:11 2Steaks

Trying to setup swc-loader with our NestJS backend project and having same issue with some of our classes. TypeError: Class constructor [class] cannot be invoked without 'new'

vitalyiegorov avatar Aug 19 '22 14:08 vitalyiegorov

~Please provide some information for debugging~

Please open another issues with the form filled.

kdy1 avatar Aug 19 '22 14:08 kdy1