Comments (8)
Hi @StreetStrider the short answer is no, there aren't any guaranteed client-side workarounds for this issue. We don't have any plans to change the behavior in the AMD CDN build. For troubleshooting, one suggestion is to tell Chrome to stop at all errors.
The only definitive fix would be to upgrade/migrate to @arcgis/core ES modules at some point.
from esri-loader.
But it seemes that this is not the only place that creates script elements, there's another place inside modules that comes from arcgis itself.
Right, you could potentially monkey patch require.injectUrl
but it comes with the same challenges and caveats: https://github.com/dojo/dojo/blob/master/dojo.js#L1746
from esri-loader.
The resources repo might be a better place.
https://github.com/Esri/jsapi-resources/
from esri-loader.
We don't have any plans to change the behavior in the AMD CDN build.
I see. This is considered to be a legacy build, if I'm right.
Actually I thought I would be able to workaround this by myself, by monkey patching loader here. But it seemes that this is not the only place that creates script elements, there's another place inside modules that comes from arcgis itself.
My last resort is to try to use mutationobserver / setinterval to put crossorigin attribute to loaded scripts, but it might not work and seemes quite tricky for my goal.
one suggestion is to tell Chrome to stop at all errors
I can't, because this is no local development. We receive this via our error tracking from live client browsers. Actually we would like to have such errors on developer machines, and we try to unmask them to make them reproducible locally.
from esri-loader.
I've tried to use @arcgis/[email protected]
and got this error:
WARNING in ../../node_modules/@arcgis/core/core/workers/workers.js 5:863-872
Critical dependency: the request of a dependency is an expression
As it seemes through the code, arcgis/core
uses dynamic imports with variable. Is it possible to consume arcgis/core
by webpack alone or do I need some special plugin to assist?
from esri-loader.
That webpack warning can be ignored, it has no impact on build tooling. You can turn them off in webpack here.
https://webpack.js.org/configuration/stats/
There is no special plugin needed for @arcgis/core
, but this is outside the scope of this repo.
from esri-loader.
@odoe thank you for answer.
but this is outside the scope of this repo
Understood. I expected it to be so. Where is the better place to address arcgis/core
related questions?
from esri-loader.
Closing as won't fix.
from esri-loader.
Related Issues (20)
- drop IE support? HOT 2
- ArcGIS JS API 4.18 Sketch Widget graphics and graphic selection often do not render in Angular 11 application HOT 4
- angular esri-loader 4.18 graphics refresh bug HOT 4
- Sketch widget: graphics not visible HOT 2
- new `esri-loader-typings-helper` plugin for VS Code HOT 2
- esri-loader dojoConfig removed not able to set has: {"csp-restrictions": true} HOT 2
- isLoaded or ready prop? HOT 2
- switch release process over to use np HOT 1
- Clean up dependabot PRs HOT 1
- 利用BaseTileLayer.createSubclass进行扩展,读取离线tms瓦片。 HOT 3
- Esri sources don't get loaded from our server HOT 3
- wall o compile node_module/@types errors when you run tests HOT 2
- ERROR ReferenceError: Can't find variable: document HOT 2
- qustion:how to test esri-loader with jest HOT 7
- After upgrading ESRI/Loader from 2.5.0 to 3.6, Querytask.js library file is returning 404 error HOT 2
- Update product name in error messages at 4.26 HOT 3
- Are you using esri-loader with Angular and Zone.js?
- What is the latest version that supports Angular 14 and ESRI JS API v3.x? HOT 2
- How to change the default Map Language ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esri-loader.