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.
Solved! Go to Solution.
You could point the assets to the specific version you want to match using jsdelivr
Typically, these warnings don't have much impact at the patch level. For production, if you want to be completely bullet-proof, you can use jsdelivr or copy the assets.
And we don't typically patch the CDN post-release, just something came up. NPM would only get patched if I messed something up, which has happened before... my bad.
You could point the assets to the specific version you want to match using jsdelivr
Typically, these warnings don't have much impact at the patch level. For production, if you want to be completely bullet-proof, you can use jsdelivr or copy the assets.
And we don't typically patch the CDN post-release, just something came up. NPM would only get patched if I messed something up, which has happened before... my bad.
Thanks for the response, and the link to jsdelivr, have not heard of that before but it looks cool.
Glad there shouldn't be any issues for now. When i'm ready to deploy for production i may use one of those options.