Can't create ES module using latest ArcGIS API javascript 4.x
See original GitHub issueI’m trying to use the latest version of ArcGIS JS API to build ES modules but i keep getting errors. I have used various bundlers and even just the demo webpack you have and still getting this error. Not really sure what’s going on and most of the documentation on ArcGIS website is not related to ES modules. Any help is appreciated Thanks
WARNING in ./node_modules/arcgis-js-api/core/workers/WorkerFallback.js 5:2100-2131
Critical dependency: the request of a dependency is an expression
@ ./node_modules/arcgis-js-api/core/workers/workerFactory.js
@ ./node_modules/arcgis-js-api/core/workers/WorkerOwner.js
@ ./node_modules/arcgis-js-api/core/workers/workers.js
@ ./node_modules/arcgis-js-api/views/MapView.js
@ ./src/index.ts
WARNING in ./node_modules/arcgis-js-api/core/workers/workers.js 5:1178-1209
Critical dependency: the request of a dependency is an expression
@ ./node_modules/arcgis-js-api/views/MapView.js
@ ./src/index.ts
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Build with ES modules | ArcGIS Maps SDK for JavaScript 4.25
ES modules are an official, standardized module system for working with modern JavaScript that has been adopted by all the major browsers. The...
Read more >ArcGIS API for JavaScript: Building Apps with ES Modules
Learn how to use the latest ES Modules release of the ArcGIS API for JavaScript to build your own custom applications.
Read more >Using ESM with ArcGIS API for JavaScript - YouTube
How to use the latest @arcgis/core esm release of the ArcGIS API for JavaScript in your modern ...
Read more >Using ES Modules with the ArcGIS JSAPI - odoenet
ES Modules allow you to quickly add the ArcGIS JS API to your modern JavaScript ... This is huge for current and new...
Read more >update repo for ArcGIS JS API ES modules (beta) at 4.18 ...
As of 4.18 there are two approaches: npm install (ESM build) - This will be the recommended approach and the modules will be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try using
@arcgis/core@next
, that should remove the warningThank you it worked