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:
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.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.