I recently migrated a project from consuming the ArcGIS Javascript API through ESRI-Loader to ES Modules.
Today I noticed this warning appearing in the browser console:
[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:
API version: 4.19 [Date: 20210423, Revision: 33983ad1]
Assets version: 4.19 [Date: 20210504, Revision: dd3facdb]
I have version 4.19.1 of the "@arcgis/core" package installed and importing the assets with this line in my index.css:
@import "https://js.arcgis.com/4.19/@arcgis/core/assets/esri/themes/light/main.css";
I'm guessing this warning is just because of a new minor release, It looks like 4.19.2 is out now.
But that raises two questions.
- Is this something that I need to worry about? Can different minor releases between the JS and assets cause issues?
- Is there a way to pin the minor version being imported from the CDN for the assets? Or for a production build should I switch locally installed assets?