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:
- [Solved] Uncaught (in promise) TypeError: XXX.a is not a constructor
- ArcGIS API for JavaScript version 4. X updated and the project startup error: Module parse failed: Unexpected token(… …
- [Solved] ESLint:TypeError: this.CliEngine is not a constructor
- How to solve Uncaught (in promise) error in VUE?
- [Solved] Vue2.0 Error: Syntax Error: TypeError: eslint.CLIEngine is not a constructor
- [Web Browser] “Uncaught TypeError: object is not a function“
- [Solved] Syntax Error: Error: No ESLint configuration found & TypeError: eslint.CLIEngine is not a constructor
- Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to crrent location: “/home“
- [Solved] Uncaught (in promise) DOMException: Failed to load because no supported source was found.
- How to Solve Uncaught (in promise) Error (Two Solutions)
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- ERROR in [eslint] ESLint is not a constructor (How to Solve)
- [Solved] Uncaught (in promise) Error: Avoided redundant navigation to current location:
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] Turf.js error: uncaught (in promise) error: the solution of invalid unit
- Vue Error: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location
- [Solved] Echarts Error: Uncaught (in promise) Error: Initialize failed: invalid dom.
- [Solved] npm Error: Class extends value undefined is not a constructor or null
- [How to Solve] TypeError: XXX is read-only
- [Solved] echarts Draw Errror: echarts-d9fd185e.js:31447 Uncaught (in promise) Error: Initialize failed: invalid dom.