Hi,
I recently installed ES modules of ArcGIS Javascript SDK (v4.25) through npm install @ArcGIS/core and I am trying to import the symbolUtils.js module into my js code:
import symbolUtils from '@arcgis/core/symbols/support/symbolUtils.js';
Unfortunately, I am getting the following error message and I haven't been able to find a solution:
import symbolUtils from '@arcgis/core/symbols/support/symbolUtils.js';
^^^^^^^^^^^
SyntaxError: The requested module '@arcgis/core/symbols/support/symbolUtils.js' does not provide an export named 'default'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:189:5).
Does anybody know why this happens? Or is it a bug?
Through ADM, the following code seems to work (but I prefer to use an ES module):
<script>
require([
"esri/symbols/support/symbolUtils",
], function(symbolUtils) {
});
</script>
Any help would be really appreciated. Thanks!