Recently I´ve migrated my project to use ES Modules to import arcgis js api.
My problem is with BasemapToggle widget, it seems to be working correctly but it doesn´t load the images under /assets/esri/images/basemap and display blank divs. (images attached)
My project url which I am using Arcgis maps is:
Under devTools inspection I´ve noticed that the url generated is:
If I change manually to the below, the images load correctly:
My assestsPath is:
config.assetsPath = '/assets';
Any help would be appreciated!