Skip to content

Get class constructors must be invoked with 'new' when instantiating new object in @click handler in PROD, but working in DEV #7613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
morfav opened this issue Jan 31, 2023 · 1 comment

Comments

@morfav
Copy link

morfav commented Jan 31, 2023

Vue version

3.2.45

Link to minimal reproduction

Exception in PROD

Same code working in DEV

Steps to reproduce

Click the button in the reproduction example. In DEV mode 'hello' is logged to the console. In PROD mode there is an exception.

What is expected?

Expect to see 'hello' logged or a meaningful exception message and consistent behaviour between DEV and PROD mode

What is actually happening?

Get class constructors must be invoked with 'new' exception in PROD, working fine in DEV mode

System Info

No response

Any additional comments?

No response

@morfav morfav changed the title Get class constructors must be invoked with 'new' when instantiating new object in @click handler Get class constructors must be invoked with 'new' when instantiating new object in @click handler in PROD, but working in DEV Jan 31, 2023
@edison1105
Copy link
Member

duplicate of #6483

@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants