Comments (4)
Cross reference: https://community.esri.com/thread/257418-featurelayer-typeerror-cannot-read-property-processors-of-undefined
from angular-cli-esri-map.
I tested both the point feature layer and polygon feature layer with no errors in the current ArcGIS Online MapViewer, MapViewer beta as well as using the code in this repo + Angular 10. See the screenshot below (using Angular 10).
I suspect the primary problem is a mismatch between your worker API version and the arcgis-webpack-plugin version. These have to be the same. Try changing `map.module.ts' to this:
constructor() {
const DEFAULT_WORKER_URL = `https://js.arcgis.com/4.16/` // This version has to match arcgis-webpack-plugin version
esriConfig.workers.loaderUrl = `${DEFAULT_WORKER_URL}dojo/dojo-lite.js`
esriConfig.workers.loaderConfig = LoaderConfig(DEFAULT_WORKER_URL)
}
I also commented out userDefinedExcludes
in esri-web.config.js
just to make sure all API modules were bundled.
from angular-cli-esri-map.
Thankyou Andy I knew this would be some minor config issue but it I was failing to determine where. This makes total sense, and fresh eyes found it easily. I'll check this later today. Thanks again.
from angular-cli-esri-map.
This resolved my issues. Thanks again @andygup.
from angular-cli-esri-map.
Related Issues (20)
- `Unhandled Promise rejection` errors are thrown on SceneView panning and zooming HOT 1
- `Unhandled Promise rejection` errors are thrown when adding basemaps to existing BasemapGalleryWidget HOT 4
- Repo retirement notice for 4.22 HOT 1
- esri-view not working when used height=100% HOT 5
- esriSignInDialog broken in JS API 4.15 using the Angular CLI and esri-loader HOT 3
- Popup template format not working HOT 2
- Document handling change detection in Angular components HOT 1
- Destroying the map - memory leak HOT 2
- Creating a Search Widget in Angular with No Map HOT 4
- click event hitTest() result undefined HOT 9
- Document using local css and workers
- Error upgrading to v 4.17 HOT 10
- Error on executing npm install command for ESRI webPack HOT 2
- ENOENT: no such file or directory HOT 3
- Deprecation notice - update repo for ArcGIS JS API ES modules (beta) at 4.18 HOT 8
- Upgrade to 4.12 fails in IE11 HOT 7
- Where is urlUtils imported from? HOT 4
- Uncaught ReferenceError: __esri is not defined HOT 5
- NgRx effects with QueryTask HOT 2
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 angular-cli-esri-map.