FeatureLayer is not loading when i use npm package

488
1
09-15-2021 03:50 AM
nidaaktan
New Contributor II

Hi,

I'm trying to create FetureLayer using client-side graphics. here is my code;

https://codepen.io/ndktn/pen/MWmqaGX 

when i change the version from 4.18 to 4.20, it works this codepen code.

But i'm using arcgis/core npm package (version 4.20)  in my own project. 4.18 npm package is working well but when i change the version to 4.20, i couldn't add feature layer on map.

Is there anyone who can help me?
Thanks.
Tags (3)
0 Kudos
1 Reply
ReneRubalcava
Frequent Contributor

Can you provide a git repo of your issue. I copied your codepen into a simple app and the layer works ok.

https://github.com/odoe/jsapi-add-featurelayer-issue

Not sure what the issue you are seeing is.

0 Kudos