New with ESM and API 4.x
I hit a wall trying to implement with ESM the simple renderer. What am I missing?
According to the:
https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html
the simplerenderer can be imported by:
But, when I try to implement it:
I get this error:
Solved! Go to Solution.
If you are going to use pure ESM via the ESM CDN, you need to add .js to filename.
https://codepen.io/odoe/pen/xxpPppQ?editors=0010
Normally when using ESM, you would use build tools that don't need the file extension.
If you are going to use pure ESM via the ESM CDN, you need to add .js to filename.
https://codepen.io/odoe/pen/xxpPppQ?editors=0010
Normally when using ESM, you would use build tools that don't need the file extension.