question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't create ES module using latest ArcGIS API javascript 4.x

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
odoecommented, Feb 25, 2021

Try using @arcgis/core@next, that should remove the warning

0reactions
nufaylrcommented, Feb 26, 2021

Thank you it worked

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found