Hi - I've updgraded Maps SDK to 4.32 and have also upgraded Angular from 18 to 19. I'm getting a bunch of the following error and layers dont appear when I hit a map in my development/debug environment (visual studio code 1.84):
ErrorEvent {isTrusted: true, message: 'Uncaught NetworkError: Failed to execute 'im…nks/285dd7683f57d9d3667d.js' failed to load.', filename: 'http://localhost:4200/assets/esri/core/workers/RemoteClient.js', lineno: 1, colno: 109155, …}
i2 @ c:\Angular\DigAlert\node_modules\@arcgis\core\core\Logger.js:98:12
Things I've done:
Verified that RemoteClient.js is within the folder above.
Changed the config.assetsPath from original: 'assets/'; to /assets/ (and tried several others ./assets/, ../assets/)
Deleted my browser history
When I publish to my server test site there are no errors, so its definitely a local problem with my debug environment.
Strange:
There are a number of maps in my app. When I changed config.assetsPath from 'assets/'; to /assets/ in just one of the maps, everything worked -- no errors and layers appeared in all maps. I thought I had the problem solved at that point, but when I changed config.assetsPath to the new value in another map it started throwing errors again
Any ideas what I should try to get this fixed?
Thanks
Pete
Solved! Go to Solution.
I changed config.assetsPath to "assets" on all maps and got no errors in my dev environment or on the server. No idea what happened, but glad that it seems to be working now!
Pete
I changed config.assetsPath to "assets" on all maps and got no errors in my dev environment or on the server. No idea what happened, but glad that it seems to be working now!
Pete