esri_geometry__WEBPACK_IMPORTED_MODULE_3__.projection is undefined
See original GitHub issueI am trying to use the esri/geometry/projection
module:
import {SpatialReference, projection} from "esri/geometry";
polygon.geometry = projection.project(polygon.geometry, SpatialReference.WGS84);
Getting error : Uncaught TypeError: esri_geometry__WEBPACK_IMPORTED_MODULE_3__.projection is undefined
FYI:
- based on comment on issue #8 , I have verified my webpack config already have
node globals
:
// webpack.config.js
node: {
process: false,
global: false,
fs: "empty"
}
- I am using Version: 4.17
Any guidance will be helpful.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Esri JS-API 4.13, Webpack, imported classes show up undefined
We are using roughly 50 classes from different packages, but five classes show up undefined, these are the failing imports: import watchUtils ...
Read more >Build with ES modules | ArcGIS Maps SDK for JavaScript 4.25
The ArcGIS Maps SDK for JavaScript 's ES modules are available for local ... import import * as projection from "@arcgis/core/geometry/projection";.
Read more >webpack imported module is not a constructor - Stack Overflow
For me, this error was caused by importing through index files. I had multiple directories with their index.ts files that exported all the...
Read more >@arcgis/webpack-plugin - npm
Uses a lightweight AMD loader during the Webpack build process to resolve module paths. The AMD loader is not used in the output...
Read more >Untitled
2 Jun 08, 2021 · Folium makes it easy to visualize data that's been manipulated in Python, on an interactive Leaflet map. engines....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, you must wait for it to load first: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#load
@dasa Thanks for pointing me to the right direction it worked for me.