ArcGIS API for JavaScript Error Uncaught(in promise): TypeError: xxx is not a constructor

preface

When using ArcGIS API JavaScript, the following errors are reported:

Cause of error

When we use require to import related packages when using ArcGIS API, the parameters in the following functionshould be consistent with the order of packages in require , otherwise the above errors will be caused.

Read More: