Hi!
I am trying to use the ArcGIS Javascript Library with ES Modules and the app for some reason breaks when trying to add a FeatureLayer, this code is working fine using the CDN examples:
Here is a snippet of the code I'm testing:
if I remove the Feature Layer the map loads fine but once I add the FeatureLayer the application errors with the following:
any pointers or ideas of what could be causing this error would be really appreciated.