laptop and a wrench

Bug

Transpiling to ES6 with the TypeScript experimental decorators returns the error message, "TypeError: Class constructor cannot be invoked without 'new'." This works for ES5.

Last Published: November 27, 2020 ArcGIS API for JavaScript
Bug ID Number BUG-000134224
SubmittedSeptember 29, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.16
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

Make sure to pass in parameters to super similar as below. constructor(params?: any) { super(params); }

Steps to Reproduce

Bug ID: BUG-000134224

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options